Skip to content

Commit fd42a67

Browse files
committed
ACP2E-1445: Customer data in Local Storage not reset when session file lost
- Fixed the existing and QA comments.
1 parent 5142083 commit fd42a67

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,7 @@ define([
5353
storage.removeAll();
5454
}
5555

56-
if (!$.localStorage.isSet('mage-customer-login')) {
57-
$.localStorage.set('mage-customer-login', isLoggedIn);
58-
}
59-
if ($.localStorage.get('mage-customer-login') !== isLoggedIn) {
60-
$.localStorage.set('mage-customer-login', isLoggedIn);
56+
if (isLoggedIn === 0) {
6157
storage.removeAll();
6258
}
6359

0 commit comments

Comments
 (0)