Skip to content

Commit 1c2956f

Browse files
committed
AC-2619:Persistent cart contents empty until new product added to cart changed implementation fixed static test failure
1 parent 668dd18 commit 1c2956f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ define([
4747
*/
4848
'Magento_Customer/js/customer-data': function (originFn,invalidateOptions) {
4949
let date;
50+
5051
let storage = $.initNamespaceStorage('mage-cache-storage').localStorage;
52+
5153
if (new Date($.localStorage.get('mage-cache-timeout')) < new Date()) {
5254
storage.removeAll();
5355
this.reload(['persistent','cart'],true);

0 commit comments

Comments
 (0)