@@ -160,10 +160,10 @@ |
||
160 | 160 | $this->address->country = $this->country->getIsoAlpha2(); |
161 | 161 | } |
162 | 162 | if(!empty($this->defaultCountry)) { |
163 | - if(!in_array($this->defaultCountry, $this->allowedCountries)) { |
|
164 | - throw new ErrorException("the set defaultCounty '{$this->defaultCountry}' must be one of the configured allowedCountries"); |
|
165 | - } |
|
166 | - $this->country = country($this->defaultCountry); |
|
163 | + if(!in_array($this->defaultCountry, $this->allowedCountries)) { |
|
164 | + throw new ErrorException("the set defaultCounty '{$this->defaultCountry}' must be one of the configured allowedCountries"); |
|
165 | + } |
|
166 | + $this->country = country($this->defaultCountry); |
|
167 | 167 | } |
168 | 168 | |
169 | 169 | if (empty($this->submitText)) { |