We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd4a70e commit 42ed59fCopy full SHA for 42ed59f
app/code/Magento/Checkout/view/frontend/web/js/model/new-customer-address.js
@@ -22,15 +22,15 @@ define([
22
23
if (addressData.region && addressData.region['region_id']) {
24
regionId = addressData.region['region_id'];
25
- } else if (!addressData['region_id']) {
26
- regionId = undefined;
27
} else if (
28
/* eslint-disable */
29
addressData['country_id'] && addressData['country_id'] == window.checkoutConfig.defaultCountryId ||
30
!addressData['country_id'] && countryId == window.checkoutConfig.defaultCountryId
31
/* eslint-enable */
32
) {
33
regionId = window.checkoutConfig.defaultRegionId || undefined;
+ } else if (!addressData['region_id']) {
+ regionId = undefined;
34
}
35
36
return {
0 commit comments