Skip to content

Commit

Permalink
Fix handling is_region_required key as optional
Browse files Browse the repository at this point in the history
Handle the condition that is_region_required is missing when the country does not require region.
Ref: #2933
  • Loading branch information
komsitr committed Jun 5, 2016
1 parent a5fa3af commit 7a8af26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ define([
this.validation['required-entry'] = false;
this.required(false);
} else {
if (!option['is_region_required']) {
if (!('is_region_required' in option) || !option['is_region_required']) {
this.error(false);
this.validation = _.omit(this.validation, 'required-entry');
} else {
Expand Down

0 comments on commit 7a8af26

Please sign in to comment.