department-of-veterans-affairs/vets-website

View on GitHub
src/applications/check-in/hooks/useSendDemographicsFlags.jsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function useSendDemographicsFlags has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useSendDemographicsFlags = () => {
  const selectApp = useMemo(makeSelectApp, []);
  const { app } = useSelector(selectApp);
  const [isLoading, setIsLoading] = useState(false);
  const [isComplete, setIsComplete] = useState(false);
Severity: Major
Found in src/applications/check-in/hooks/useSendDemographicsFlags.jsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status