diff --git a/apps/site/src/pages/guest-portal/[token].astro b/apps/site/src/pages/guest-portal/[token].astro index ebc9ab7a..9cc89c77 100644 --- a/apps/site/src/pages/guest-portal/[token].astro +++ b/apps/site/src/pages/guest-portal/[token].astro @@ -155,9 +155,9 @@ const socialFields = [ >
@@ -383,7 +383,7 @@ const socialFields = [ socials, }), }); - const data = await res.json(); + const data = (await res.json()) as { error?: string }; if (!res.ok) { throw new Error(data.error || "Failed to update profile"); }