Skip to content

Commit

Permalink
refactor: return urltree in auth guard
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuamorony committed Oct 22, 2023
1 parent 7e30362 commit 2450ca7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/shared/guards/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const isAuthenticatedGuard = (): CanActivateFn => {
return true;
}

router.navigate(['auth', 'login']);
return false;
return router.parseUrl('auth/login');
};
};

0 comments on commit 2450ca7

Please sign in to comment.