Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/site/src/pages/guest-portal/[token].astro
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ const socialFields = [
>
<div class="mx-auto max-w-4xl px-4 py-10 sm:px-6 lg:px-8">
<Breadcrumbs
items={[
{ label: "Guests", href: "/guests" },
{ label: guestDoc?.title || "Guest Portal" },
links={[
{ title: "Guests", href: "/guests" },
{ title: guestDoc?.title || "Guest Portal" },
]}
/>

Expand Down Expand Up @@ -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");
}
Expand Down
Loading