Skip to content

Commit b87300a

Browse files
MC-36884: Incorrect default country displayed on shipping page when store view is changed in cart
1 parent 9c5119a commit b87300a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/cart/shipping-estimation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,13 @@ define(
7979

8080
if (!quote.isVirtual()) {
8181
checkoutProvider.on('shippingAddress', function (shippingAddressData) {
82+
//jscs:disable requireCamelCaseOrUpperCaseIdentifiers
8283
if (quote.shippingAddress().countryId !== shippingAddressData.country_id ||
8384
(shippingAddressData.postcode || shippingAddressData.region_id)
8485
) {
8586
checkoutData.setShippingAddressFromData(shippingAddressData);
8687
}
88+
//jscs:enable requireCamelCaseOrUpperCaseIdentifiers
8789
});
8890
} else {
8991
checkoutProvider.on('shippingAddress', function (shippingAddressData) {

0 commit comments

Comments
 (0)