diff --git a/angular/src/components/login.component.ts b/angular/src/components/login.component.ts index 0e2763c0..c6c7cf93 100644 --- a/angular/src/components/login.component.ts +++ b/angular/src/components/login.component.ts @@ -53,10 +53,7 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit this.email = ''; } } - this.rememberEmail = await this.stateService.getRememberEmail(); - if (this.rememberEmail == null) { - this.rememberEmail = true; - } + this.rememberEmail = await this.stateService.getRememberedEmail() != null; if (Utils.isBrowser && !Utils.isNode) { this.focusInput(); }