department-of-veterans-affairs/vets-website

View on GitHub
src/applications/mhv-medical-records/hooks/use-alerts.js

Summary

Maintainability
A
1 hr
Test Coverage

Function useAlerts has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useAlerts = dispatch => {
  const alertList = useSelector(state => state.mr.alerts?.alertList);
  const [activeAlert, setActiveAlert] = useState();

  useEffect(
Severity: Minor
Found in src/applications/mhv-medical-records/hooks/use-alerts.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status