Vizzuality/landgriffon

View on GitHub
client/src/hooks/layers/impact.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function useImpactLayer has 82 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useImpactLayer = () => {
  const searchParams = useSearchParams();
  const compareScenarioId = searchParams.get('compareScenarioId');
  const scenarioId = searchParams.get('scenarioId');
  const isComparisonEnabled = Boolean(compareScenarioId);
Severity: Major
Found in client/src/hooks/layers/impact.ts - About 3 hrs to fix

    There are no issues that match your filters.

    Category
    Status