Skip to content

Commit b4ee601

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

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ define([
121121
);
122122
}
123123
checkoutProvider.on('shippingAddress', function (shippingAddrsData) {
124-
if (!_.isEmpty(shippingAddrsData.street[0])) {
124+
if (shippingAddrsData.street && !_.isEmpty(shippingAddrsData.street[0])) {
125125
checkoutData.setShippingAddressFromData(shippingAddrsData);
126126
}
127127
});

0 commit comments

Comments
 (0)