mirror of
https://github.com/bitwarden/clients.git
synced 2026-06-22 21:02:34 +08:00
Fix AppComponent.ngOnInit throwing an error (#16115)
This commit is contained in:
parent
a6e7efddeb
commit
7aca0cdbd7
@ -321,6 +321,9 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
private async clearComponentStates() {
|
||||
if (this.activeUserId == null) {
|
||||
return;
|
||||
}
|
||||
if (!(await firstValueFrom(this.tokenService.hasAccessToken$(this.activeUserId)))) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user