log captcha error for debuggability

This commit is contained in:
Kevin Grüneberg authored and Joshen Lim committed 2022-12-21 14:05:23 +07:00
1 parent 00b94fdc1f
commit 5d213e9b53
1 file changed
+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)
}}