diff options
Diffstat (limited to 'client/angular/app/app.component.ts')
-rw-r--r-- | client/angular/app/app.component.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/client/angular/app/app.component.ts b/client/angular/app/app.component.ts index 68c9ba009..da9959836 100644 --- a/client/angular/app/app.component.ts +++ b/client/angular/app/app.component.ts | |||
@@ -53,11 +53,7 @@ export class AppComponent { | |||
53 | private _authService: AuthService, | 53 | private _authService: AuthService, |
54 | private _router: Router | 54 | private _router: Router |
55 | ) { | 55 | ) { |
56 | if (localStorage.getItem('access_token')) { | 56 | this.isLoggedIn = this._authService.isLoggedIn(); |
57 | this.isLoggedIn = true; | ||
58 | } else { | ||
59 | this.isLoggedIn = false; | ||
60 | } | ||
61 | 57 | ||
62 | this._authService.loginChanged$.subscribe( | 58 | this._authService.loginChanged$.subscribe( |
63 | status => { | 59 | status => { |