From e0c9b1f4d8932f0f587f5818edb9049daf3163ba Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 12 Apr 2020 21:53:17 +0200 Subject: [PATCH] Solving a login bug with redirections --- src/app/app.component.ts | 1 - src/app/auth/auth.service.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 713ae3f0..2c6b7e35 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -39,7 +39,6 @@ export class AppComponent this.isLoading = false; break; default: - this.isLoading = false; break; } }); diff --git a/src/app/auth/auth.service.ts b/src/app/auth/auth.service.ts index 6d073a9e..d708d6e5 100644 --- a/src/app/auth/auth.service.ts +++ b/src/app/auth/auth.service.ts @@ -26,7 +26,6 @@ export class AuthService { this.getUser(); this.isAuthenticated = authorizationResult.authorizationState == AuthorizationState.authorized; - this.router.navigate(["/"]); }); this.getUser(); }