Merge branch 'main' of github.com:vector-im/matrix-video-chat

This commit is contained in:
Robert Long 2022-01-12 13:47:49 -08:00
commit 3c30ca5f95

View file

@ -52,6 +52,10 @@ export function useRecaptcha(sitekey) {
}, [recaptchaId, sitekey]);
const execute = useCallback(() => {
if (!sitekey) {
return Promise.resolve(null);
}
if (!window.grecaptcha) {
return Promise.reject(new Error("Recaptcha not loaded"));
}