Skip to content

Commit 308284c

Browse files
authored
Merge pull request #766 from CodingCatDev/fix/guest-portal-typecheck
fix(site): resolve astro check diagnostics on guest portal page
2 parents c7ee673 + 3b7e8db commit 308284c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/site/src/pages/guest-portal/[token].astro‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,9 @@ const socialFields = [
155155
>
156156
<div class="mx-auto max-w-4xl px-4 py-10 sm:px-6 lg:px-8">
157157
<Breadcrumbs
158-
items={[
159-
{ label: "Guests", href: "/guests" },
160-
{ label: guestDoc?.title || "Guest Portal" },
158+
links={[
159+
{ title: "Guests", href: "/guests" },
160+
{ title: guestDoc?.title || "Guest Portal" },
161161
]}
162162
/>
163163

@@ -383,7 +383,7 @@ const socialFields = [
383383
socials,
384384
}),
385385
});
386-
const data = await res.json();
386+
const data = (await res.json()) as { error?: string };
387387
if (!res.ok) {
388388
throw new Error(data.error || "Failed to update profile");
389389
}

0 commit comments

Comments
 (0)