department-of-veterans-affairs/vets-website

View on GitHub
src/applications/resources-and-support/hooks/useGetSearchResults.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function useGetSearchResults has 103 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function useGetSearchResults(articles, query, page) {
  const [results, setResults] = useState([]);

  // Refresh the results list when the query is submitted or the page is changed.
  useEffect(
Severity: Major
Found in src/applications/resources-and-support/hooks/useGetSearchResults.js - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status