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 5837d36 commit 4d50066Copy full SHA for 4d50066
app/code/Magento/Checkout/view/frontend/web/js/model/new-customer-address.js
@@ -21,10 +21,11 @@ define([
21
regionId;
22
23
countryId = addressData['country_id'] || addressData.countryId;
24
+
25
if (countryId) {
26
if (addressData.region && addressData.region['region_id']) {
27
regionId = addressData.region['region_id'];
- } else if(countryId == window.checkoutConfig.defaultCountryId) {
28
+ } else if(countryId === window.checkoutConfig.defaultCountryId) {
29
regionId = window.checkoutConfig.defaultRegionId;
30
}
31
} else {
0 commit comments