reset password: pressing enter does not submit form

it reloads the page because of missing submit button
This commit is contained in:
Girish Ramakrishnan 2024-03-25 22:19:57 +01:00
parent 42db1a41cb
commit 238bb91194

View File

@ -97,6 +97,7 @@ const ResetPasswordPage = () => {
<Button
variant="contained"
color="secondary"
type="submit"
onClick={handleSubmit}
disabled={!/(.+)@(.+)\.(.{2,})/.test(email) && !password}
fullWidth