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

Fixing of hidden map when selecting already selected CoverageKind #4434

Merged
merged 2 commits into from
Sep 28, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ export function VaccineCoverageChoroplethPerGm({
const setSelectedCoverageKindAndAge = (
coverageKind: CoverageKindProperty
) => {
if (coverageKind === selectedCoverageKind) {
return;
}
// When changing between coverage kinds where the selected age group isn't available,
// the other coverage kind set the non-matching age group to a default one.
if (selectedAgeGroup !== '12+') {
Expand Down