mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
incorporate loginEmailService changes
This commit is contained in:
@@ -326,7 +326,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
protected async saveEmailSettings() {
|
||||
this.loginEmailService.setEmail(this.formGroup.value.email);
|
||||
this.loginEmailService.setLoginEmail(this.formGroup.value.email);
|
||||
this.loginEmailService.setRememberEmail(this.formGroup.value.rememberEmail);
|
||||
await this.loginEmailService.saveEmailSettings();
|
||||
}
|
||||
@@ -345,7 +345,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
|
||||
|
||||
private async loadEmailSettings(): Promise<void> {
|
||||
// Try to load the email from memory first
|
||||
const email = this.loginEmailService.getEmail();
|
||||
const email = await firstValueFrom(this.loginEmailService.loginEmail$);
|
||||
const rememberEmail = this.loginEmailService.getRememberEmail();
|
||||
|
||||
if (email) {
|
||||
|
||||
Reference in New Issue
Block a user