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

Commit

Permalink
Fix/vaccine coverage date (#4207)
Browse files Browse the repository at this point in the history
* fix: use date_unix for vaccine coverage data

* fix: use date_unix instead of date_end_unix for vaccine coverage chart

Co-authored-by: VWSCoronaDashboard24 <[email protected]>
  • Loading branch information
VWSCoronaDashboard24 and VWSCoronaDashboard24 authored Apr 28, 2022
1 parent 2ea8b04 commit d7b71cf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/app/schema/nl/vaccine_coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"partially_or_fully_vaccinated",
"date_start_unix",
"date_end_unix",
"date_unix",
"date_of_insertion_unix"
],
"additionalProperties": false,
Expand All @@ -32,6 +33,9 @@
"date_end_unix": {
"type": "integer"
},
"date_unix": {
"type": "integer"
},
"date_of_insertion_unix": {
"type": "integer"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function VaccinationsOverTimeTile(props: VaccinationsOverTimeTileProps) {
const lastDate = useMemo<number>(
() =>
activeVaccinationChart === 'coverage' && isDefined(coverageData)
? coverageData.last_value.date_end_unix
? coverageData.last_value.date_unix
: administrationData.last_value.date_end_unix,
[
activeVaccinationChart,
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/types/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,7 @@ export interface NlVaccineCoverageValue {
partially_or_fully_vaccinated: number;
date_start_unix: number;
date_end_unix: number;
date_unix: number;
date_of_insertion_unix: number;
}
export interface NlVaccineDeliveryEstimate {
Expand Down

0 comments on commit d7b71cf

Please sign in to comment.