From 098135ccdd5e253849a955c2c72cda807aad454c Mon Sep 17 00:00:00 2001 From: Alaister Young Date: Thu, 1 Dec 2022 12:33:29 +0000 Subject: [PATCH] fix: reset captcha token on sso sign in error --- studio/components/interfaces/SignIn/SignInSSOForm.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/studio/components/interfaces/SignIn/SignInSSOForm.tsx b/studio/components/interfaces/SignIn/SignInSSOForm.tsx index 874e0f6b97d..dbf67ccb353 100644 --- a/studio/components/interfaces/SignIn/SignInSSOForm.tsx +++ b/studio/components/interfaces/SignIn/SignInSSOForm.tsx @@ -44,6 +44,7 @@ const SignInSSOForm = () => { window.location.href = data.url } } else { + setCaptchaToken(null) captchaRef.current?.resetCaptcha() ui.setNotification({