Skip to content

Commit edb196c

Browse files
author
Serhiy Shkolyarenko
committed
MAGETWO-53217: Error occurred during "save_in_address_book" processing" error during checkout with not saved address
fix for billing address
1 parent 6fd5921 commit edb196c

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
@@ -159,7 +159,7 @@ define(
159159
if (customer.isLoggedIn() && !this.customerHasAddresses) {
160160
this.saveInAddressBook(1);
161161
}
162-
addressData.save_in_address_book = this.saveInAddressBook();
162+
addressData.save_in_address_book = this.saveInAddressBook() ? 1 : 0;
163163
newBillingAddress = createBillingAddress(addressData);
164164

165165
// New address must be selected as a billing address

0 commit comments

Comments
 (0)