mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
log captcha error for debuggability
This commit is contained in:
1 parent
00b94fdc1f
commit
5d213e9b53
1 file changed
+1
-1
+1
-1
@@ -76,7 +76,6 @@ const AddNewPaymentMethodModal: FC<Props> = ({ visible, returnUrl, onCancel }) =
|
||||
appearance: { theme: 'night', labels: 'floating' },
|
||||
} as any
|
||||
|
||||
// Needs to be re-rendered properly for hCaptcha to work seamlessly
|
||||
return (
|
||||
<>
|
||||
<HCaptcha
|
||||
@@ -84,6 +83,7 @@ const AddNewPaymentMethodModal: FC<Props> = ({ visible, returnUrl, onCancel }) =
|
||||
sitekey={process.env.NEXT_PUBLIC_HCAPTCHA_SITE_KEY!}
|
||||
size="invisible"
|
||||
onLoad={onCaptchaLoaded}
|
||||
onError={(err) => console.error(err)}
|
||||
onVerify={(token) => {
|
||||
setCaptchaToken(token)
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user