Skip to content

Commit 1e654be

Browse files
authored
Add Return to React Hook: useGoogleReCaptcha
Add `return` to React Hook: useGoogleReCaptcha on conditional statement `executeRecaptcha`
1 parent f4b87d3 commit 1e654be

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)