department-of-veterans-affairs/vets-website

View on GitHub
src/platform/user/profile/reducers/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function profileInformation has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function profileInformation(state = initialState, action) {
  switch (action.type) {
    case UPDATE_PROFILE_FIELDS: {
      const newState = mapRawUserDataToState(action.payload);
      return { ...state, ...newState };
Severity: Minor
Found in src/platform/user/profile/reducers/index.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status