Skip to content

Commit

Permalink
Update post-code.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko authored Jan 28, 2019
1 parent d134032 commit 0902931
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ define([

option = options[value];

if (option && option['is_zipcode_optional']) {
if (!option) {
return;
}

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

0 comments on commit 0902931

Please sign in to comment.