Skip to content

Commit 07cf9fd

Browse files
ENGCOM-8630: Moving array access for CAPTCHA _.isEmpty check #31636
- Merge Pull Request #31636 from MellenIO/magento2:patch-1 - Merged commits: 1. 36c031a
2 parents c9242e8 + 36c031a commit 07cf9fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Captcha/view/frontend/web/js/view/checkout/defaultCaptcha.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ define([
5656
*/
5757
checkCustomerData: function (formId, captchaData, captcha) {
5858
if (!_.isEmpty(captchaData) &&
59-
!_.isEmpty(captchaData)[formId] &&
59+
!_.isEmpty(captchaData[formId]) &&
6060
captchaData[formId].timestamp > captcha.timestamp
6161
) {
6262
if (!captcha.isRequired() && captchaData[formId].isRequired) {

0 commit comments

Comments
 (0)