Avoid too many return
statements within this function. New
New
return state;
Avoid too many return
statements within this function. New
New
return {
...state,
isCommentLoading: false,
commentCounts: {
...state.commentCounts,
Avoid too many return
statements within this function. New
New
return {
...state,
isCommentLoading: false,
errors: payload || 'An error occurred while creating the comment.',
};
Avoid too many return
statements within this function. New
New
return { ...state, isCommentLoading: false, errors: payload || 'Error occurred' };