department-of-veterans-affairs/vets-website

View on GitHub
src/applications/vaos/referral-appointments/hooks/useGetReferralById.jsx

Summary

Maintainability
A
2 hrs
Test Coverage

Function useGetReferralById has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useGetReferralById = id => {
  const [referralNotFound, setReferralNotFound] = useState(false);
  const [currentReferral, setCurrentReferral] = useState(null);
  const dispatch = useDispatch();
  const featureCCDirectScheduling = useSelector(

    There are no issues that match your filters.

    Category
    Status