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 f015422 commit b51b4c1Copy full SHA for b51b4c1
1 file changed
packages/analytics-js/src/components/userSessionManager/UserSessionManager.ts
@@ -767,7 +767,8 @@ class UserSessionManager implements IUserSessionManager {
767
768
batch(() => {
769
Object.keys(DEFAULT_USER_SESSION_VALUES).forEach(key => {
770
- if (opts.entries[key as UserSessionKey] !== true) {
+ const userSessionKey = key as UserSessionKey;
771
+ if (opts.entries[userSessionKey] !== true) {
772
return;
773
}
774
@@ -779,8 +780,7 @@ class UserSessionManager implements IUserSessionManager {
779
780
this.resetAndStartNewSession();
781
break;
782
default:
- session[key as UserSessionKey].value =
783
- DEFAULT_USER_SESSION_VALUES[key as UserSessionKey];
+ session[userSessionKey].value = DEFAULT_USER_SESSION_VALUES[userSessionKey];
784
785
786
});
0 commit comments