Skip to content

Commit 1018200

Browse files
committed
MC-41165: Error on shipping step during checkout
1 parent 6a63aac commit 1018200

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js/view/form/element

1 file changed

+6
-2
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/form/element/email.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,13 @@ define([
161161
return valid;
162162
}
163163

164-
validator = loginForm.validate();
164+
if (loginForm.is(':visible')) {
165+
validator = loginForm.validate();
165166

166-
return validator.check(usernameSelector);
167+
return validator.check(usernameSelector);
168+
}
169+
170+
return true;
167171
},
168172

169173
/**

0 commit comments

Comments
 (0)