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