1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

incorporate loginEmailService changes

This commit is contained in:
rr-bw
2024-09-07 12:53:48 -07:00
parent d279ae499d
commit e190ca48c7

View File

@@ -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) {