Skip to content

Commit 0902931

Browse files
author
Oleksii Korshenko
authored
Update post-code.js
1 parent d134032 commit 0902931

File tree

1 file changed

+5
-1
lines changed
  • app/code/Magento/Ui/view/base/web/js/form/element

1 file changed

+5
-1
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/post-code.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ define([
3434

3535
option = options[value];
3636

37-
if (option && option['is_zipcode_optional']) {
37+
if (!option) {
38+
return;
39+
}
40+
41+
if (option['is_zipcode_optional']) {
3842
this.error(false);
3943
this.validation = _.omit(this.validation, 'required-entry');
4044
} else {

0 commit comments

Comments
 (0)