From 2ee5eb2819639964de7aebea0c34f83ce1f98c68 Mon Sep 17 00:00:00 2001 From: Natalie Martin Date: Wed, 18 Sep 2024 09:30:35 -0700 Subject: [PATCH] Improve typing on LoginComponent The `onSubmit` method took in an `any` value. Get rid of that and replace it with the interface we know we're getting from the form. PER-9810: Archive tags are not loaded on login --- src/app/auth/components/login/login.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/auth/components/login/login.component.ts b/src/app/auth/components/login/login.component.ts index 9b22e7b46..a697b4991 100644 --- a/src/app/auth/components/login/login.component.ts +++ b/src/app/auth/components/login/login.component.ts @@ -49,7 +49,12 @@ export class LoginComponent { }); } - onSubmit(formValue: any) { + onSubmit(formValue: { + email: string; + password: string; + rememberMe: boolean; + keepLoggedIn: boolean; + }) { this.waiting = true; return this.accountService