Skip to content

Commit a7cfedb

Browse files
committed
fix: submitting login works with enter again
1 parent 226f67d commit a7cfedb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/(account)/login/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const LoginPage = () => {
4949
Loading...
5050
</div>
5151
}
52-
<FormContainer onSubmit={(e) => e.preventDefault()} title='Login'>
52+
<FormContainer action={handleSubmit} title='Login'>
5353
{state.error && isGeneralError(state.error) && errorMessage(state.error.error)}
5454

5555
<TextField
@@ -83,7 +83,7 @@ const LoginPage = () => {
8383
}
8484
/>
8585

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

8888
<AlternativeActions
8989
links={

0 commit comments

Comments
 (0)