Skip to content

Commit

Permalink
fix: submitting login works with enter again
Browse files Browse the repository at this point in the history
  • Loading branch information
corp-0 committed Mar 8, 2024
1 parent 78e9ec5 commit ba8031c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/(account)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const LoginPage = () => {
Loading...
</div>
}
<FormContainer onSubmit={(e) => e.preventDefault()} title='Login'>
<FormContainer action={handleSubmit} title='Login'>
{state.error && isGeneralError(state.error) && errorMessage(state.error.error)}

<TextField
Expand Down Expand Up @@ -83,7 +83,7 @@ const LoginPage = () => {
}
/>

<Button onClick={handleSubmit} className="mt-4 w-full" filled>Log in</Button>
<Button type='submit' className="mt-4 w-full" filled>Log in</Button>

<AlternativeActions
links={
Expand Down

0 comments on commit ba8031c

Please sign in to comment.