From e3219d2766a1bc6660f373a2a9a28dd8f363c083 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Wed, 11 Sep 2024 10:33:03 -0700 Subject: [PATCH] handle desktop ngOnDestroy() --- libs/auth/src/angular/login/login.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index 53006297c1..4c4f962460 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -143,6 +143,11 @@ export class LoginComponentV2 implements OnInit, OnDestroy { } ngOnDestroy(): void { + if (this.clientType === ClientType.Desktop) { + // TODO-rr-bw: refactor to not use deprecated broadcaster service. + this.broadcasterService.unsubscribe(BroadcasterSubscriptionId); + } + this.destroy$.next(); this.destroy$.complete(); }