Skip to content

Commit d456469

Browse files
MC-38048: Incorrect default country displayed on shipping page when store view is changed in cart. Part 2
1 parent d59ad58 commit d456469

File tree

1 file changed

+1
-3
lines changed
  • app/code/Magento/Checkout/view/frontend/web/js/view

1 file changed

+1
-3
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/shipping.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ define([
122122
}
123123
checkoutProvider.on('shippingAddress', function (shippingAddrsData) {
124124
//jscs:disable requireCamelCaseOrUpperCaseIdentifiers
125-
if (quote.shippingAddress().countryId !== shippingAddrsData.country_id &&
126-
(shippingAddrsData.postcode || shippingAddrsData.region_id)
127-
) {
125+
if (shippingAddrsData.street && shippingAddrsData.street[0].length > 0) {
128126
checkoutData.setShippingAddressFromData(shippingAddrsData);
129127
}
130128
//jscs:enable requireCamelCaseOrUpperCaseIdentifiers

0 commit comments

Comments
 (0)