From f67caaa9936e60787c0f857279b1dd05e9ab433b Mon Sep 17 00:00:00 2001 From: superolegatron Date: Tue, 24 Sep 2024 17:13:49 +0300 Subject: [PATCH] added captcha token reset for signup --- .../SignUp/components/signup/signup-form/SignUpFormContent.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FrontEnd/src/components/SignUp/components/signup/signup-form/SignUpFormContent.jsx b/FrontEnd/src/components/SignUp/components/signup/signup-form/SignUpFormContent.jsx index 72b48434..7fb73176 100644 --- a/FrontEnd/src/components/SignUp/components/signup/signup-form/SignUpFormContent.jsx +++ b/FrontEnd/src/components/SignUp/components/signup/signup-form/SignUpFormContent.jsx @@ -169,6 +169,9 @@ export function SignUpFormContentComponent(props) { if (error.response && error.response.status === 400) { toast.error('Не вдалося зареєструвати користувача, сталася помилка'); } + }) + .finally(()=>{ + reCaptchaRef.current.reset(); }); };