From 7aca0cdbd7345a0e10bbd24cb86daf0f4c75938b Mon Sep 17 00:00:00 2001 From: Justin Baur <19896123+justindbaur@users.noreply.github.com> Date: Thu, 21 Aug 2025 17:28:03 -0400 Subject: [PATCH] Fix `AppComponent.ngOnInit` throwing an error (#16115) --- apps/browser/src/popup/app.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/browser/src/popup/app.component.ts b/apps/browser/src/popup/app.component.ts index fa1e6c237c9..bd7b41b6e5f 100644 --- a/apps/browser/src/popup/app.component.ts +++ b/apps/browser/src/popup/app.component.ts @@ -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; }