mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-26 05:17:04 +00:00
Type fixes for react v19 compatibility (#2937)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user