From 71fd85c907bdb66094c2ffc0aa4db7e0021b0ca2 Mon Sep 17 00:00:00 2001 From: Jared Snider Date: Sun, 15 Dec 2024 14:30:14 -0500 Subject: [PATCH] PM-8113 - TwoFactorAuthComp - isTrustedDeviceEncEnabled - add undefined check for optional window close. + Add todo --- .../src/angular/two-factor-auth/two-factor-auth.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts b/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts index 2dfb8c217e..d744dd24b0 100644 --- a/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts +++ b/libs/auth/src/angular/two-factor-auth/two-factor-auth.component.ts @@ -378,7 +378,8 @@ export class TwoFactorAuthComponent implements OnInit, OnDestroy { ); } - if (this.twoFactorAuthComponentService.closeWindow) { + // TODO: determine why this is necessary? + if (this.twoFactorAuthComponentService.closeWindow !== undefined) { this.twoFactorAuthComponentService.closeWindow(); return; }