From 4efcc53628f7841b3ceb428610cfbe36f83afb80 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Thu, 6 Jan 2022 14:16:31 -0800 Subject: [PATCH] fix style undefined --- src/auth/useRecaptcha.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;