From 746bff63c221c825b300502f3445907649e2b27a Mon Sep 17 00:00:00 2001
From: Stanislav Idolov <sidolov@ebay.com>
Date: Wed, 21 Oct 2015 16:51:16 +0300
Subject: [PATCH] MAGETWO-44369: Billing Address isn't saved in address book if
 was entered during checkout

---
 .../Checkout/view/frontend/web/js/view/billing-address.js       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js b/app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js
index fa4f63f9633..e94541d0180 100644
--- a/app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js
+++ b/app/code/Magento/Checkout/view/frontend/web/js/view/billing-address.js
@@ -150,7 +150,7 @@ define(
                         var addressData = this.source.get(this.dataScopePrefix),
                             newBillingAddress = createBillingAddress(addressData);
 
-                        if (this.isCustomerLoggedIn && !this.customerHasAddresses) {
+                        if (customer.isLoggedIn() && !this.customerHasAddresses) {
                             this.saveInAddressBook(true);
                         }
                         addressData.save_in_address_book = this.saveInAddressBook();
-- 
GitLab