Skip to content

Commit

Permalink
Fixed Issue magento#20631
Browse files Browse the repository at this point in the history
  • Loading branch information
Govind Sharma authored and Amol Chaudhari committed Feb 2, 2019
1 parent d700436 commit 467a2a8
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,17 @@ define([
update: function (value) {
var country = registry.get(this.parentName + '.' + 'country_id'),
options = country.indexedOptions,
option;
option = null;

if (!value) {
return;
}

option = options[value];

if (!option) {
return;
}

if (option['is_zipcode_optional']) {
this.error(false);
this.validation = _.omit(this.validation, 'required-entry');
Expand Down

0 comments on commit 467a2a8

Please sign in to comment.