From 5d213e9b53bbcd6205e3136aee5e730e084012f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Gr=C3=BCneberg?= Date: Tue, 20 Dec 2022 10:21:14 +0100 Subject: [PATCH] log captcha error for debuggability --- .../AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx b/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx index 9da33e2f215..5b23757d3c0 100644 --- a/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx +++ b/studio/components/interfaces/Billing/AddNewPaymentMethodModal/AddNewPaymentMethodModal.tsx @@ -76,7 +76,6 @@ const AddNewPaymentMethodModal: FC = ({ visible, returnUrl, onCancel }) = appearance: { theme: 'night', labels: 'floating' }, } as any - // Needs to be re-rendered properly for hCaptcha to work seamlessly return ( <> = ({ visible, returnUrl, onCancel }) = sitekey={process.env.NEXT_PUBLIC_HCAPTCHA_SITE_KEY!} size="invisible" onLoad={onCaptchaLoaded} + onError={(err) => console.error(err)} onVerify={(token) => { setCaptchaToken(token) }}