Skip to content

Commit 4dd6188

Browse files
author
Stanislav Idolov
committed
MAGETWO-44369: Billing Address isn't saved in address book if was entered during checkout
1 parent 5017aee commit 4dd6188

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,13 @@ define(
148148

149149
if (!this.source.get('params.invalid')) {
150150
var addressData = this.source.get(this.dataScopePrefix),
151-
newBillingAddress = createBillingAddress(addressData);
151+
newBillingAddress;
152152

153153
if (customer.isLoggedIn() && !this.customerHasAddresses) {
154154
this.saveInAddressBook(true);
155155
}
156156
addressData.save_in_address_book = this.saveInAddressBook();
157+
newBillingAddress = createBillingAddress(addressData);
157158

158159
// New address must be selected as a billing address
159160
selectBillingAddress(newBillingAddress);

0 commit comments

Comments
 (0)