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:
committed by
GitHub
parent
a3d037de3c
commit
841e5980d7
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user