diff --git a/src/routes/auth/+page.svelte b/src/routes/auth/+page.svelte index 75eef87147..a23b94593d 100644 --- a/src/routes/auth/+page.svelte +++ b/src/routes/auth/+page.svelte @@ -167,7 +167,7 @@ onMount(async () => { const redirectPath = $page.url.searchParams.get('redirect'); - if ($user !== undefined) { + if ($user) { goto(redirectPath || '/'); } else { if (redirectPath) {