Skip to content

Commit 11a97de

Browse files
author
Oleksandr Dubovyk
committed
Merge remote-tracking branch 'troll/MAGETWO-60128' into pull-primary
2 parents 858cc27 + 0195c22 commit 11a97de

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/Customer/view/frontend/web/js/model/customer-addresses.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,23 @@ define(
1111
],
1212
function($, ko, address) {
1313
"use strict";
14+
1415
var isLoggedIn = ko.observable(window.isCustomerLoggedIn);
16+
1517
return {
1618
getAddressItems: function() {
1719
var items = [];
18-
if (isLoggedIn) {
20+
if (isLoggedIn()) {
1921
var customerData = window.customerData;
2022
if (Object.keys(customerData).length) {
2123
$.each(customerData.addresses, function (key, item) {
2224
items.push(new address(item));
2325
});
2426
}
2527
}
28+
2629
return items;
2730
}
2831
}
2932
}
30-
);
33+
);

0 commit comments

Comments
 (0)