diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index e8040bb..578ddc3 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -15,7 +15,7 @@ export class LoginComponent implements OnInit { ngOnInit() { firebaseApp.auth().onAuthStateChanged(user => { - if(!!user) let ignore = this.ngZone.run(() => this.router.navigate(['/dashboard'])); + if(!!user) this.ngZone.run(() => this.router.navigate(['/dashboard'])); }) }