Skip to content

Commit

Permalink
Improve typing on LoginComponent
Browse files Browse the repository at this point in the history
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
  • Loading branch information
meisekimiu committed Sep 30, 2024
1 parent b31c871 commit 2ee5eb2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/auth/components/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ee5eb2

Please sign in to comment.