Skip to content

Commit e118fa5

Browse files
authored
Merge pull request #6 from Jobeso/master
Fixes crash related to undefined render function
2 parents 4bb6d93 + 43e6b5b commit e118fa5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ReCaptcha.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ReCaptcha extends Component {
3232
theme: PropTypes.oneOf(["dark", "light"])
3333
};
3434
isReady = () =>
35-
typeof window !== "undefined" && typeof window.grecaptcha !== "undefined";
35+
typeof window !== "undefined" && typeof window.grecaptcha !== "undefined" && typeof window.grecaptcha.render === 'function';
3636

3737
readyIntervalId = setInterval(() => this._updateReadyState(), 1000);
3838
recaptcha = createRef();

0 commit comments

Comments
 (0)