client: fix js error

This commit is contained in:
fantasticit 2022-09-17 22:54:09 +08:00
parent a9892a3fa8
commit 7ffdc77360
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ export const ResetPassword = ({ onSuccess }) => {
return ( return (
<Form <Form
initValues={{ email: user.email, password: '', confirmPassword: '' }} initValues={{ email: user ? user.email : '', password: '', confirmPassword: '' }}
onChange={onFormChange} onChange={onFormChange}
onSubmit={onFinish} onSubmit={onFinish}
> >