mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-22 00:44:52 +02:00
Refix fix
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
import { superForm } from "sveltekit-superforms";
|
||||
import { zod4Client as zodClient } from "sveltekit-superforms/adapters";
|
||||
import { baseSchema, formSchema } from "./schema";
|
||||
import { resolve } from "$app/paths";
|
||||
|
||||
let { formId, onEvent }: { formId: string; onEvent: EventReporter } = $props();
|
||||
|
||||
@@ -42,7 +43,7 @@
|
||||
onResult: async (event) => {
|
||||
if (event.result.type === "success") {
|
||||
auth.setUser(event.result.data?.user);
|
||||
await goto(ROUTES.DASHBOARD.MAIN);
|
||||
await goto(resolve(ROUTES.DASHBOARD.MAIN));
|
||||
} else {
|
||||
toast.error(m["login.error"]());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user