Skip to content

Commit a1dd7bc

Browse files
authored
Merge pull request #90 from renomureza/master
Add Return to React Hook: useGoogleReCaptcha
2 parents f4b87d3 + 1e654be commit a1dd7bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ const YourReCaptchaComponent = () => {
135135
const handleReCaptchaVerify = useCallback(async () => {
136136
if (!executeRecaptcha) {
137137
console.log('Execute recaptcha not yet available');
138+
return;
138139
}
139140

140141
const token = await executeRecaptcha('yourAction');

0 commit comments

Comments
 (0)