Skip to content

Commit

Permalink
refactor: remove unnessecary logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmaElsoly committed Aug 29, 2024
1 parent de9fa12 commit 405bb55
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion frontend/src/assets/vue.svg

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ const router = createRouter({

router.beforeEach((to, _, next) => {
const token: string | null = sessionStorage.getItem("token");
console.log(token);
console.log(to.meta.requiresAuth);
if (to.meta.requiresAuth && (token == null || token.length == 0)) {
console.log("ffej");
next({ name: "login" });
} else {
next();
Expand Down

0 comments on commit 405bb55

Please sign in to comment.