department-of-veterans-affairs/vets-website

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

Summary

Maintainability
A
3 hrs
Test Coverage

Function useSendPreCheckInData has 68 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useSendPreCheckInData = () => {
  const selectForm = useMemo(makeSelectForm, []);
  const { data } = useSelector(selectForm);
  const [isLoading, setIsLoading] = useState(true);
  const {
Severity: Major
Found in src/applications/check-in/hooks/useSendPreCheckInData.jsx - About 2 hrs to fix

    Function sendPreCheckInData has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          async function sendPreCheckInData() {
            // Set pre-checkin complete and send demographics flags.
            const preCheckInData = { uuid: token };
    
            if (demographicsUpToDate) {
    Severity: Minor
    Found in src/applications/check-in/hooks/useSendPreCheckInData.jsx - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status