1
0
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:
Justin Baur
2025-08-21 17:28:03 -04:00
committed by GitHub
parent a6e7efddeb
commit 7aca0cdbd7

View File

@@ -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;
}