diff --git a/src/components/auth/TurnstileCaptcha.tsx b/src/components/auth/TurnstileCaptcha.tsx index c04b1bc5..7c9abd1f 100644 --- a/src/components/auth/TurnstileCaptcha.tsx +++ b/src/components/auth/TurnstileCaptcha.tsx @@ -72,10 +72,15 @@ export function TurnstileCaptcha({ } }; - // Auto-reset on theme changes + // Monitor for initialization failures useEffect(() => { - resetCaptcha(); - }, [theme]); + if (loading) { + const timeout = setTimeout(() => { + setLoading(false); + }, 10000); // 10 second timeout + return () => clearTimeout(timeout); + } + }, [loading]); if (!siteKey || siteKey === "0x4AAAAAAAk8oZ8Z8Z8Z8Z8Z") { return ( @@ -90,15 +95,15 @@ export function TurnstileCaptcha({ return (