From 7c8c4382b81a69f46f085ecd9771ea577f26ab8c Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 29 Mar 2020 22:02:23 +0200 Subject: [PATCH] Solving a small bug --- src/app/services/auth.service.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/app/services/auth.service.ts b/src/app/services/auth.service.ts index 3a03552b..e617d4cd 100644 --- a/src/app/services/auth.service.ts +++ b/src/app/services/auth.service.ts @@ -28,7 +28,7 @@ export class AuthService this.isAuthenticated = authorizationResult.authorizationState == AuthorizationState.authorized; this.router.navigate(["/"]); }); - + this.getUser(); } getUser() @@ -38,11 +38,6 @@ export class AuthService this.user = userData; console.log("Got user data"); console.log(this.user); - // this.zone.run(() => - // { - // this.user = userData; - // this.isAuthenticated = userData !== undefined; - // }); }); }