Skip to content

Commit

Permalink
removed console.log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias Crum authored and Elias Crum committed Oct 8, 2024
1 parent 115dec2 commit 1c452ea
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ const router = createRouter({
setTimeout(() => {
router.beforeEach(async (to, from) => {
// make sure the user is authenticated
console.log(from, ' --> ', to)
if (!isLoggedin() && to.name !== "Login Page" && from.name === "Home") {
return { name: "Login Page" };
} else if (!isLoggedin() && to.name === "Home" && from.name !== "Login Page") {
Expand Down

0 comments on commit 1c452ea

Please sign in to comment.