fixed login posts issue

This commit is contained in:
Nouman Tahir 2021-03-08 17:15:52 +05:00
parent 98294f8b93
commit b9384eb829

View File

@ -181,7 +181,9 @@ const PostsContainer = ({
console.log('New state:', state); console.log('New state:', state);
//dispatch to redux //dispatch to redux
if (filter === state.currentFilter) { if (
filter === (state.currentFilter !== 'feed' ? state.currentFilter : state.currentSubFilter)
) {
_setFeedPosts(_posts); _setFeedPosts(_posts);
} }
return state; return state;