Skip to content

Commit

Permalink
chore: add log for rety
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Oct 7, 2024
1 parent cc2be83 commit aae4623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"dev": "wp-scripts start",
"start": "wp-scripts start",
"watch": "wp-scripts start",
"build": "wp-scripts build",
"plugin-zip": "wp-scripts plugin-zip"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export default function TurnstileField({
console.error({ turnstileError: errorCode });

if (errorCodeRetry.challengeTimeout.some(code => errorCode.startsWith(code))) {
console.info('Retrying Turnstile challenge');
ref.current?.reset();
} else {
setFormError();
Expand Down

0 comments on commit aae4623

Please sign in to comment.