From aae4623a62c8b2967a56a269db82b876607153ab Mon Sep 17 00:00:00 2001 From: Jon Waldstein Date: Mon, 7 Oct 2024 16:55:45 -0400 Subject: [PATCH] chore: add log for rety --- package.json | 1 + src/FormExtension/DonationForm/resources/js/TurnstileField.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 3218819..7854fd2 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/src/FormExtension/DonationForm/resources/js/TurnstileField.tsx b/src/FormExtension/DonationForm/resources/js/TurnstileField.tsx index 3ad8c98..b3aac39 100644 --- a/src/FormExtension/DonationForm/resources/js/TurnstileField.tsx +++ b/src/FormExtension/DonationForm/resources/js/TurnstileField.tsx @@ -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();