mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-13 00:51:45 +01:00
minor refactor to use destructuring
This commit is contained in:
parent
0f62f07cf2
commit
8c786622e3
@ -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,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user