Skip to content

Commit 42ed59f

Browse files
committed
ACP2E-1580: Tax and Shipping Estimator in the Cart not reflecting default destination configuration
1 parent fd4a70e commit 42ed59f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/new-customer-address.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ define([
2222

2323
if (addressData.region && addressData.region['region_id']) {
2424
regionId = addressData.region['region_id'];
25-
} else if (!addressData['region_id']) {
26-
regionId = undefined;
2725
} else if (
2826
/* eslint-disable */
2927
addressData['country_id'] && addressData['country_id'] == window.checkoutConfig.defaultCountryId ||
3028
!addressData['country_id'] && countryId == window.checkoutConfig.defaultCountryId
3129
/* eslint-enable */
3230
) {
3331
regionId = window.checkoutConfig.defaultRegionId || undefined;
32+
} else if (!addressData['region_id']) {
33+
regionId = undefined;
3434
}
3535

3636
return {

0 commit comments

Comments
 (0)