Skip to content

Commit 0890139

Browse files
committed
#17744 Reorganizing code
1 parent a44eb5d commit 0890139

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/checkout-data-resolver.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ define([
226226

227227
return;
228228
}
229-
shippingAddress = quote.billingAddress();
229+
230230
if(quote.isVirtual()) {
231231
isBillingAddressInitialized = addressList.some(function (addrs) {
232232
if (addrs.isDefaultBilling()) {
@@ -237,6 +237,7 @@ define([
237237
});
238238
}
239239

240+
shippingAddress = quote.shippingAddress();
240241
if (!isBillingAddressInitialized &&
241242
shippingAddress &&
242243
shippingAddress.canUseForBilling() &&

0 commit comments

Comments
 (0)