Skip to content

Commit d134032

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

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ define([
3333
}
3434

3535
option = options[value];
36-
if (!option) {
37-
return;
38-
}
3936

40-
if (option['is_zipcode_optional']) {
37+
if (option && option['is_zipcode_optional']) {
4138
this.error(false);
4239
this.validation = _.omit(this.validation, 'required-entry');
4340
} else {

0 commit comments

Comments
 (0)