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

minor refactor to use destructuring

This commit is contained in:
rr-bw
2024-09-11 10:12:07 -07:00
parent 0f62f07cf2
commit 8c786622e3

View File

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