src/redux/reducers/commentReducers.ts
Avoid too many return
statements within this function. Open
Open
return state;
Avoid too many return
statements within this function. Open
Open
return {
...state,
isCommentLoading: false,
commentCounts: {
...state.commentCounts,
Avoid too many return
statements within this function. Open
Open
return {
...state,
isCommentLoading: false,
errors: payload || 'An error occurred while creating the comment.',
};
Avoid too many return
statements within this function. Open
Open
return { ...state, isCommentLoading: false, errors: payload || 'Error occurred' };