fix style undefined

This commit is contained in:
Robert Long 2022-01-06 14:16:31 -08:00
parent 4be14159c5
commit 4efcc53628

View file

@ -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;