department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-medical-records/reducers/sharing.js

Summary

Maintainability
A
1 hr
Test Coverage

Function sharingReducer has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const sharingReducer = (state = initialState, action) => {
  switch (action.type) {
    case Actions.Sharing.STATUS: {
      const { consentStatus } = action.response;
      return {
Severity: Minor
Found in src/applications/mhv-medical-records/reducers/sharing.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status