1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

fix(device-approval-login): [PM-19379] Approve Device Login - Fix the call so that it works when not in a TDE scenario. (#13934)

This commit is contained in:
Patrick-Pimentel-Bitwarden
2025-03-21 10:22:37 -04:00
committed by GitHub
parent a3d037de3c
commit 841e5980d7

View File

@@ -187,9 +187,7 @@ export class LoginViaAuthRequestComponent implements OnInit, OnDestroy {
private async initStandardAuthRequestFlow(): Promise<void> { private async initStandardAuthRequestFlow(): Promise<void> {
this.flow = Flow.StandardAuthRequest; this.flow = Flow.StandardAuthRequest;
this.email = await firstValueFrom( this.email = (await firstValueFrom(this.loginEmailService.loginEmail$)) || undefined;
this.accountService.activeAccount$.pipe(map((a) => a?.email)),
);
if (!this.email) { if (!this.email) {
await this.handleMissingEmail(); await this.handleMissingEmail();