Type fixes for react v19 compatibility (#2937)

This commit is contained in:
Hugh Nimmo-Smith
2025-01-13 14:54:42 +00:00
committed by GitHub
parent c8b30dd8a7
commit 2f5f0978ad
17 changed files with 33 additions and 14 deletions

View File

@@ -32,7 +32,7 @@ export function useRecaptcha(sitekey?: string): {
} {
const { t } = useTranslation();
const [recaptchaId] = useState(() => randomString(16));
const promiseRef = useRef<RecaptchaPromiseRef>();
const promiseRef = useRef<RecaptchaPromiseRef | undefined>(undefined);
useEffect(() => {
if (!sitekey) return;