Skip to content
Snippets Groups Projects
Commit c8ff538c authored by codekipple's avatar codekipple
Browse files

When validating postcode exit early in the update function if the 'option' is...

When validating postcode exit early in the update function if the 'option' is undefined. This can happen with stores that have a different deault country than US
parent b09ab2aa
No related merge requests found
......@@ -35,6 +35,11 @@ define([
return;
}
option = options[value];
if (typeof option === 'undefined') {
return;
}
defaultPostCodeResolver.setUseDefaultPostCode(!option['is_zipcode_optional']);
if (this.skipValidation) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment