department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-secure-messaging/reducers/alerts.js

Summary

Maintainability
A
1 hr
Test Coverage

Function alertsReducer has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const alertsReducer = (state = initialState, action) => {
  switch (action.type) {
    case Actions.Alerts.CLOSE_ALERT:
      // Set visibility to false and set ALL alerts to inactive.
      return {
Severity: Minor
Found in src/applications/mhv-secure-messaging/reducers/alerts.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status