mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 18:23:31 +00:00
Fix AppComponent.ngOnInit throwing an error (#16115)
This commit is contained in:
@@ -321,6 +321,9 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async clearComponentStates() {
|
private async clearComponentStates() {
|
||||||
|
if (this.activeUserId == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!(await firstValueFrom(this.tokenService.hasAccessToken$(this.activeUserId)))) {
|
if (!(await firstValueFrom(this.tokenService.hasAccessToken$(this.activeUserId)))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user