diff --git a/src/lib/components/availability/LoginModal.svelte b/src/lib/components/availability/LoginModal.svelte index c3a60ce6..c7de4214 100644 --- a/src/lib/components/availability/LoginModal.svelte +++ b/src/lib/components/availability/LoginModal.svelte @@ -2,7 +2,7 @@ import type { ActionResult } from "@sveltejs/kit"; import { superForm } from "sveltekit-superforms/client"; - import type { PageData } from "../../../routes/availability/$types"; + import type { PageData } from "../../../routes/availability/[slug]/$types"; import { deserialize } from "$app/forms"; import { userSchema } from "$lib/config/zod-schemas"; @@ -87,7 +87,7 @@ $guestSession = { guestName: guestData.data?.username, - meetingId: data.meetingId, + meetingId: data.meetingId ?? "", }; $isEditingAvailability = false; @@ -182,7 +182,7 @@
handleGuestSubmit(data.meetingId)} + on:submit|preventDefault={() => handleGuestSubmit(data.meetingId ?? "")} > {#if formState === "failure"}