We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9130f67 commit 0195c22Copy full SHA for 0195c22
app/code/Magento/Customer/view/frontend/web/js/model/customer-addresses.js
@@ -11,20 +11,23 @@ define(
11
],
12
function($, ko, address) {
13
"use strict";
14
+
15
var isLoggedIn = ko.observable(window.isCustomerLoggedIn);
16
17
return {
18
getAddressItems: function() {
19
var items = [];
- if (isLoggedIn) {
20
+ if (isLoggedIn()) {
21
var customerData = window.customerData;
22
if (Object.keys(customerData).length) {
23
$.each(customerData.addresses, function (key, item) {
24
items.push(new address(item));
25
});
26
}
27
28
29
return items;
30
31
32
-);
33
+);
0 commit comments