Skip to content

Commit

Permalink
added async for clarity of the code
Browse files Browse the repository at this point in the history
  • Loading branch information
markgol777 committed Nov 14, 2024
1 parent 662856f commit 6029093
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ResetPassword: FC<ResetPasswordProps> = ({ resetToken, openModal }) => {

const { handleSubmit, handleInputChange, handleBlur, errors, data } =
useForm<NewPassword>({
onSubmit: (): Promise<void> =>
onSubmit: async (): Promise<void> =>
sendResetPassword({ password: data.password }),
initialValues: { password: '', confirmPassword: '' },
validations: { password, confirmPassword }
Expand Down

0 comments on commit 6029093

Please sign in to comment.