fix: missed refdirect

This commit is contained in:
Arman
2022-08-31 12:53:14 +02:00
parent 517be5a9ca
commit 1be34d9ae1
+1 -2
View File
@@ -30,8 +30,7 @@
}
if (!$page.url.pathname.startsWith('/console')) {
const destination = await redirectTo();
await goto(destination);
await redirectTo();
}
} catch (error) {
await goto(`${base}/login`);