Skip to content

Commit

Permalink
fix: keep comments redux store on logout.
Browse files Browse the repository at this point in the history
This diff fixes a bug where comments were cleared from the redux store
on logout which shouldn't be the case as the comments are public
information and should be displayed without an active user session.
  • Loading branch information
amass01 authored Sep 14, 2021
1 parent 22b9170 commit 29b5e4c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/reducers/models/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,6 @@ const comments = (state = DEFAULT_STATE, action) =>
}
return state;
},
[act.RECEIVE_LOGOUT]: () => DEFAULT_STATE,
[act.RECEIVE_CMS_LOGOUT]: () => DEFAULT_STATE
}[action.type] || (() => state)
)();
Expand Down

0 comments on commit 29b5e4c

Please sign in to comment.