diff --git a/src/app/guestbook/page.jsx b/src/app/guestbook/page.jsx index a63e23d..ed997cd 100644 --- a/src/app/guestbook/page.jsx +++ b/src/app/guestbook/page.jsx @@ -37,7 +37,9 @@ function Guestbook() { try { const res = await fetch("/api/guestbook/entries"); const data = await res.json(); - setEntries(data); + // setEntries(data); + setEntries(Array.isArray(data) ? data : []); + } catch (error) { console.error("Failed to fetch guestbook entries", error); } finally {