From 602909372b230cf2e29254639624fccaf8b7b6d5 Mon Sep 17 00:00:00 2001 From: markgol777 Date: Thu, 14 Nov 2024 13:11:15 +0100 Subject: [PATCH] added async for clarity of the code --- src/containers/guest-home-page/reset-password/ResetPassword.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/containers/guest-home-page/reset-password/ResetPassword.tsx b/src/containers/guest-home-page/reset-password/ResetPassword.tsx index f96213611..135b8c468 100644 --- a/src/containers/guest-home-page/reset-password/ResetPassword.tsx +++ b/src/containers/guest-home-page/reset-password/ResetPassword.tsx @@ -84,7 +84,7 @@ const ResetPassword: FC = ({ resetToken, openModal }) => { const { handleSubmit, handleInputChange, handleBlur, errors, data } = useForm({ - onSubmit: (): Promise => + onSubmit: async (): Promise => sendResetPassword({ password: data.password }), initialValues: { password: '', confirmPassword: '' }, validations: { password, confirmPassword }