Skip to content

Commit

Permalink
ENGCOM-4088: [Backport] Fixed Issue #20631 Console error on checkout …
Browse files Browse the repository at this point in the history
…after changing the allowed countries from admin #20885
  • Loading branch information
sivaschenko authored Feb 6, 2019
2 parents 88d6e22 + 87c9c61 commit d027b69
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,18 @@ 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 d027b69

Please sign in to comment.