minor refactor to use destructuring

This commit is contained in:
rr-bw 2024-09-11 10:12:07 -07:00
parent 0f62f07cf2
commit 8c786622e3
No known key found for this signature in database
GPG Key ID: 3FA13C3ADEE51D5D
1 changed files with 3 additions and 3 deletions

View File

@ -138,7 +138,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
}
submit = async (): Promise<void> => {
const data = this.formGroup.value;
const { email, masterPassword } = this.formGroup.value;
await this.setupCaptcha();
@ -163,8 +163,8 @@ export class LoginComponentV2 implements OnInit, OnDestroy {
}
const credentials = new PasswordLoginCredentials(
data.email,
data.masterPassword,
email,
masterPassword,
this.captchaToken,
null,
);