diff --git a/packages/react-components/src/Recaptcha.tsx b/packages/react-components/src/Recaptcha.tsx index eb0dc79..cc22193 100644 --- a/packages/react-components/src/Recaptcha.tsx +++ b/packages/react-components/src/Recaptcha.tsx @@ -19,13 +19,13 @@ const Recaptcha: React.FunctionComponent = ({ onCallback }) => { script.onload = () => { const { grecaptcha } = window as any; - grecaptcha.ready(() => { + grecaptcha.enterprise.ready(() => { if (container.current) { - grecaptcha.render(container.current, { + grecaptcha.enterprise.render(container.current, { callback: (response: any) => { onCallback(response); }, - sitekey: '6LdmRHogAAAAAF9YN6bMc6hNExitqRJog3-wDkH-' + sitekey: '6LdRdHEmAAAAAB6sCexgvlzcefHetcyUF506W6Z9' }); } }); @@ -35,7 +35,7 @@ const Recaptcha: React.FunctionComponent = ({ onCallback }) => { setError(error.toString()); }; - script.src = 'https://www.google.com/recaptcha/api.js'; + script.src = 'https://www.google.com/recaptcha/enterprise.js'; document.body.appendChild(script); }, [onCallback]);