src/app/hooks/useOptimizelyScrollDepth/index.jsx

Summary

Maintainability
A
2 hrs
Test Coverage
A
93%

Function useOptimizelyScrollDepth has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const useOptimizelyScrollDepth = () => {
  const { isAmp } = useContext(RequestContext);
  const { optimizely } = useContext(OptimizelyContext);
  const [scrollDepth, setScrollDepth] = useState(0);
  const [scrollTwentyFive, setScrollTwentyFive] = useState(false);
Severity: Major
Found in src/app/hooks/useOptimizelyScrollDepth/index.jsx - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status