Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
feat(COR-1953): Added corrections for rioolwater NL and infectieradar…
Browse files Browse the repository at this point in the history
… pages (#5005)

Signed-off-by: M <[email protected]>
  • Loading branch information
VWSCoronaDashboard30 committed Mar 20, 2024
1 parent 59d09f3 commit 22170d0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/app/src/domain/sewer/sewer-chart/sewer-chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { ChartTile } from '~/components/chart-tile';
import { ChartTimeControls } from '~/components/chart-time-controls';
import { colors, NlSewer, SewerPerInstallationData, TimeframeOption, TimeframeOptionsList } from '@corona-dashboard/common';
import { DateRange } from '~/components/metadata';
import { getDateFromValues } from '~/utils/get-last-insertion-date-of-page';
import { isPresent } from 'ts-is-present';
import { mediaQueries, space } from '~/style/theme';
import { mergeData, useSewerStationSelectPropsSimplified } from './logic';
Expand All @@ -19,7 +20,6 @@ import { useValuesInTimeframe } from '~/components/time-series-chart/logic';
import { Warning } from '@corona-dashboard/icons';
import { WarningTile } from '~/components/warning-tile';
import styled from 'styled-components';
import { getDateFromValues } from '~/utils/get-last-insertion-date-of-page';

interface SewerChartProps {
/**
Expand Down Expand Up @@ -91,10 +91,9 @@ export const SewerChart = ({ accessibility, dataAverages, dataPerInstallation, t
const [sewerTimeframe, setSewerTimeframe] = useState<TimeframeOption>(TimeframeOption.ALL);

const router = useRouter();
const values = useValuesInTimeframe(dataAverages.values, timeframe);

const [sewerChartTimeInterval, setSewerChartTimeInterval] = useState<DateRange | undefined>({ start: 0, end: 0 });
const metadataLastInsertionDate = getDateFromValues(values);
const metadataLastInsertionDate = getDateFromValues(dataAverages);

const scopedGmName = commonTexts.gemeente_index.municipality_warning;
const scopedWarning = useScopedWarning(vrNameOrGmName || '', warning || '');
Expand Down

0 comments on commit 22170d0

Please sign in to comment.