Skip to content

Commit b7a9da2

Browse files
PavelLaptevestib-vega
authored andcommitted
Update +page.svelte
1 parent 659e4bd commit b7a9da2

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

apps/web/src/routes/(app)/profile/finalize/+page.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@
6464
await userService.refreshUser();
6565
}
6666
67-
// $effect(() => {
68-
// if (!isLoggedIn) {
69-
// goto(routesService.loginPath());
70-
// } else if (isFinalized) {
71-
// goto(routesService.homePath());
72-
// }
73-
// });
67+
$effect(() => {
68+
if (!isLoggedIn) {
69+
goto(routesService.loginPath());
70+
} else if (isFinalized) {
71+
goto(routesService.homePath());
72+
}
73+
});
7474
</script>
7575

7676
<svelte:head>

0 commit comments

Comments
 (0)