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

Commit

Permalink
feature(COR-1953): Fixed sewer branch last insertion date not displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
VWSCoronaDashboard30 committed Mar 20, 2024
1 parent 6cc801f commit 6449d85
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 @@ -16,7 +16,6 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
import { useIntl } from '~/intl';
import { useRouter } from 'next/router';
import { useScopedWarning } from '~/utils/use-scoped-warning';
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';
Expand Down Expand Up @@ -91,10 +90,10 @@ 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 6449d85

Please sign in to comment.