We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bb6d93 commit 861b7a3Copy full SHA for 861b7a3
src/ReCaptcha.js
@@ -32,7 +32,7 @@ class ReCaptcha extends Component {
32
theme: PropTypes.oneOf(["dark", "light"])
33
};
34
isReady = () =>
35
- typeof window !== "undefined" && typeof window.grecaptcha !== "undefined";
+ typeof window !== "undefined" && typeof window.grecaptcha !== "undefined" && typeof window.grecaptcha.render === 'function';
36
37
readyIntervalId = setInterval(() => this._updateReadyState(), 1000);
38
recaptcha = createRef();
0 commit comments