Displaying differences for changeset
 
display as  

static/er2_303d_assess/js/reducers/context_bar.js

@@ -129,8 +129,8 @@
         }
     },
     [catenaActions.USER_UPDATE]: (state, action) => {
-        if (!action.user) {
-            // Remove tracking context
+        if (action.user.id == 0) {
+            // Remove tracking context for anonymous users (id = 0 default form er2_login)
             const itracking = state.items.findIndex(
                 (item) => item.id === ids.ASSESSMENT_TRACKING,
             )