From 8110bb67c7dd98448e511f0778d5df15ed57384a Mon Sep 17 00:00:00 2001 From: t49tran Date: Thu, 21 Oct 2021 22:11:00 +1100 Subject: [PATCH] fix: recaptcha provider not working with dynamic recaptchaKey --- src/google-recaptcha-provider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google-recaptcha-provider.tsx b/src/google-recaptcha-provider.tsx index 326c204..6f153de 100644 --- a/src/google-recaptcha-provider.tsx +++ b/src/google-recaptcha-provider.tsx @@ -105,7 +105,7 @@ export function GoogleReCaptchaProvider({ return () => { cleanGoogleRecaptcha(scriptId); }; - }, [useEnterprise, useRecaptchaNet, scriptProps, language]); + }, [useEnterprise, useRecaptchaNet, scriptProps, language, reCaptchaKey]); const executeRecaptcha = useCallback( async (action?: string) => {