1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-16 01:21:48 +01:00

PM-8113 - TwoFactorAuthComp - isTrustedDeviceEncEnabled - add undefined check for optional window close. + Add todo

This commit is contained in:
Jared Snider 2024-12-15 14:30:14 -05:00
parent ace5f3b99c
commit 71fd85c907
No known key found for this signature in database
GPG Key ID: A149DDD612516286

View File

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