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 0c5934e commit a58cb7eCopy full SHA for a58cb7e
app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js
@@ -82,11 +82,14 @@ define(
82
});
83
84
quote.billingAddress.subscribe(function (newAddress) {
85
- this.isAddressSameAsShipping(
86
- newAddress != null &&
87
- newAddress.getCacheKey() == quote.shippingAddress().getCacheKey() &&
88
- !quote.isVirtual()
89
- );
+ if (quote.isVirtual()) {
+ this.isAddressSameAsShipping(false);
+ } else {
+ this.isAddressSameAsShipping(
+ newAddress != null &&
90
+ newAddress.getCacheKey() == quote.shippingAddress().getCacheKey()
91
+ );
92
+ }
93
94
if (newAddress != null && newAddress.saveInAddressBook !== undefined) {
95
this.saveInAddressBook(newAddress.saveInAddressBook);
0 commit comments