refac
This commit is contained in:
1 parent
86f55d04ec
commit
609cc6ad9b
1 file changed
+1
-1
@@ -167,7 +167,7 @@
|
|||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
const redirectPath = $page.url.searchParams.get('redirect');
|
const redirectPath = $page.url.searchParams.get('redirect');
|
||||||
if ($user !== undefined) {
|
if ($user) {
|
||||||
goto(redirectPath || '/');
|
goto(redirectPath || '/');
|
||||||
} else {
|
} else {
|
||||||
if (redirectPath) {
|
if (redirectPath) {
|
||||||
|
|||||||
Reference in new issue
Block a user