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

fix(login): [PM-20587] Fix unawaited calls to set login email

* Await setting login email in state.

* Changed to get email state within the component.

* Added null filter

* PM-20587 - LoginViaAuthRequest component - update initStandardAuthRequestFlow to correctly retrieve data from active account.

---------

Co-authored-by: Jared Snider <jsnider@bitwarden.com>
This commit is contained in:
Todd Martin
2025-04-29 12:00:02 -04:00
committed by GitHub
parent 417b59a1cc
commit 29d0e74e23
4 changed files with 23 additions and 6 deletions

View File

@@ -284,7 +284,6 @@ export class LoginDecryptionOptionsComponent implements OnInit {
}
protected async approveFromOtherDevice() {
this.loginEmailService.setLoginEmail(this.email);
await this.router.navigate(["/login-with-device"]);
}
@@ -297,7 +296,6 @@ export class LoginDecryptionOptionsComponent implements OnInit {
}
protected async requestAdminApproval() {
this.loginEmailService.setLoginEmail(this.email);
await this.router.navigate(["/admin-approval-requested"]);
}