Skip to content

Commit 685d49d

Browse files
committed
Updated Insight
1 parent ad77383 commit 685d49d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

view/frontend/web/insights.js

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ define(
33
'jquery',
44
'algoliaAnalytics',
55
'algoliaBundle',
6-
'algoliaCommon'
6+
'algoliaCommon',
7+
'mage/cookies'
78
],
89
function ($, algoliaAnalyticsWrapper, algoliaBundle) {
910
algoliaAnalytics = algoliaAnalyticsWrapper.default;
@@ -63,6 +64,7 @@ define(
6364
algoliaAnalytics.setAuthenticatedUserToken(userToken);
6465
} else if (unsetAuthenticationToken && unsetAuthenticationToken !== '') {
6566
algoliaAnalytics.setAuthenticatedUserToken('undefined');
67+
$.mage.cookies.clear('unset_authentication_token');
6668
}
6769
},
6870

0 commit comments

Comments
 (0)