From 29b5e4cb7f03459bbb41973e5c49aa612209135f Mon Sep 17 00:00:00 2001 From: Amir Massarwa Date: Tue, 14 Sep 2021 16:21:31 +0300 Subject: [PATCH] fix: keep `comments` redux store on logout. 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. --- src/reducers/models/comments.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/reducers/models/comments.js b/src/reducers/models/comments.js index 813471f9b..cd13c5cb1 100644 --- a/src/reducers/models/comments.js +++ b/src/reducers/models/comments.js @@ -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) )();