Skip to content

Commit 746bff6

Browse files
author
Stanislav Idolov
committed
MAGETWO-44369: Billing Address isn't saved in address book if was entered during checkout
1 parent df6ab51 commit 746bff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ define(
150150
var addressData = this.source.get(this.dataScopePrefix),
151151
newBillingAddress = createBillingAddress(addressData);
152152

153-
if (this.isCustomerLoggedIn && !this.customerHasAddresses) {
153+
if (customer.isLoggedIn() && !this.customerHasAddresses) {
154154
this.saveInAddressBook(true);
155155
}
156156
addressData.save_in_address_book = this.saveInAddressBook();

0 commit comments

Comments
 (0)