From 8c786622e3fbf277d0c04cda37c8f3d0ae8cb362 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Wed, 11 Sep 2024 10:12:07 -0700 Subject: [PATCH] minor refactor to use destructuring --- libs/auth/src/angular/login/login.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/auth/src/angular/login/login.component.ts b/libs/auth/src/angular/login/login.component.ts index 25fb249586..0d84a0f064 100644 --- a/libs/auth/src/angular/login/login.component.ts +++ b/libs/auth/src/angular/login/login.component.ts @@ -138,7 +138,7 @@ export class LoginComponentV2 implements OnInit, OnDestroy { } submit = async (): Promise => { - 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, );