department-of-veterans-affairs/vets-website

View on GitHub
src/applications/personalization/profile/actions/index.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function fetchMilitaryInformation has 70 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function fetchMilitaryInformation(recordAnalyticsEvent = recordEvent) {
  return async dispatch => {
    dispatch({ type: FETCH_MILITARY_INFORMATION });

    const baseUrl = '/profile/service_history';
Severity: Major
Found in src/applications/personalization/profile/actions/index.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status