🩹 Fix auth guard actions order

pull/26/head
Alexis Feron 2 months ago
parent bfb3197fcb
commit ec73968949

@ -18,8 +18,9 @@ export class AuthGuard implements CanActivate {
if (token) { if (token) {
return true; return true;
} else { } else {
this.loginModalService.openModal(); this.router.navigate(['/']).then(() => {
this.router.navigate(['/']); this.loginModalService.openModal();
});
return false; return false;
} }
} }

Loading…
Cancel
Save