🩹 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) {
return true;
} else {
this.loginModalService.openModal();
this.router.navigate(['/']);
this.router.navigate(['/']).then(() => {
this.loginModalService.openModal();
});
return false;
}
}

Loading…
Cancel
Save