From cb38718b5daf191297ba61167e4ac36111de81e0 Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Fri, 22 Sep 2023 17:29:36 +0200 Subject: [PATCH] fix(ui): check for token before request --- frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx b/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx index 11b9db674..e1309f12b 100644 --- a/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx +++ b/frontend/app/components/ForgotPassword/ResetPasswordRequest.tsx @@ -32,6 +32,8 @@ function ResetPasswordRequest(props: Props) { }; const handleSubmit = (token?: any) => { + if (token === null || token === undefined) return; + setError(null); props .requestResetPassword({ email: email.trim(), 'g-recaptcha-response': token })