atlp-rwanda/atlp-devpulse-fn

View on GitHub
src/redux/reducers/commentReducers.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Avoid too many return statements within this function.
New

        return state;
Severity: Major
Found in src/redux/reducers/commentReducers.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    New

          return {
            ...state,
            isCommentLoading: false,
            commentCounts: {
              ...state.commentCounts,
    Severity: Major
    Found in src/redux/reducers/commentReducers.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      New

              return {
                ...state,
                isCommentLoading: false,
                errors: payload || 'An error occurred while creating the comment.',
              };
      Severity: Major
      Found in src/redux/reducers/commentReducers.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        New

              return { ...state, isCommentLoading: false, errors: payload || 'Error occurred' };
        Severity: Major
        Found in src/redux/reducers/commentReducers.ts - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status