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 and Amol Chaudhari committed Feb 2, 2019
1 parent 467a2a8 commit a48a4de
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,8 @@ define([
}

option = options[value];
if (!option) {
return;
}

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

0 comments on commit a48a4de

Please sign in to comment.