Skip to content

Commit 454b6f9

Browse files
author
Mark Berube
committed
MC-42649: fixing recaptcha error
1 parent ce6795c commit 454b6f9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ReCaptchaFrontendUi/view/frontend/web/js/reCaptcha.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ define(
5959
* @returns {Boolean}
6060
*/
6161
getIsInvisibleRecaptcha: function () {
62-
return this.settings.invisible;
62+
if (this.settings === void 0) {
63+
return false;
64+
} else {
65+
return this.settings.invisible;
66+
}
6367
},
6468

6569
/**
@@ -83,7 +87,7 @@ define(
8387
widgetId,
8488
parameters;
8589

86-
if (this.captchaInitialized) {
90+
if (this.captchaInitialized || this.settings === void 0) {
8791
return;
8892
}
8993

0 commit comments

Comments
 (0)