client/src/hooks/layers/impact.ts
Function useImpactLayer
has 82 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const useImpactLayer = () => {
const searchParams = useSearchParams();
const compareScenarioId = searchParams.get('compareScenarioId');
const scenarioId = searchParams.get('scenarioId');
const isComparisonEnabled = Boolean(compareScenarioId);