diff --git a/src/auth/useRecaptcha.js b/src/auth/useRecaptcha.js index 47ecf18..0570d1b 100644 --- a/src/auth/useRecaptcha.js +++ b/src/auth/useRecaptcha.js @@ -59,7 +59,7 @@ export function useRecaptcha(sitekey) { return new Promise((resolve, reject) => { const observer = new MutationObserver((mutationsList) => { for (const item of mutationsList) { - if (item.target.style.visibility !== "visible") { + if (item.target.style?.visibility !== "visible") { reject(new Error("Recaptcha dismissed")); observer.disconnect(); return;