Skip to content

Commit 2aaa969

Browse files
committed
MC-36096: [Cloud] Local cache storage is not retained for the expected period.
1 parent 6c5246a commit 2aaa969

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,9 @@ define([
215215
$.cookieStorage.set('section_data_clean', '');
216216
}
217217

218-
var cookieExpires = new Date(Date.now() + parseInt(options.cookieLifeTime, 10) * 1000);
219218
$.cookieStorage.setConf({
220219
path: '/',
221-
expires: cookieExpires
220+
expires: new Date(Date.now() + parseInt(options.cookieLifeTime, 10) * 1000)
222221
});
223222
},
224223

0 commit comments

Comments
 (0)