Skip to content

Commit

Permalink
fix some redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
VovaStelmashchuk committed Jan 30, 2025
1 parent 76ac112 commit 479aa9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,9 @@ import { navigateTo } from "nuxt/app";
const useAuthState = useAuth();
const user = await useAuthState.fetchUser();
if (user) {
console.log("User is logged in");
fetchUser();
navigateTo("/home");
}
const loginDialog = useLoginDialog();
</script>

0 comments on commit 479aa9b

Please sign in to comment.