From 8df13ee7c89ded0654e6b1e3c67fca40d62d7604 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Tue, 18 Jan 2022 11:49:59 -0800 Subject: [PATCH] Sitekey change should update execute method --- src/auth/useRecaptcha.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/auth/useRecaptcha.js b/src/auth/useRecaptcha.js index 41ae207..450c3df 100644 --- a/src/auth/useRecaptcha.js +++ b/src/auth/useRecaptcha.js @@ -100,7 +100,7 @@ export function useRecaptcha(sitekey) { }); } }); - }, [recaptchaId]); + }, [recaptchaId, sitekey]); const reset = useCallback(() => { if (window.grecaptcha) {