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

Commit

Permalink
fix(choropleth): fixed switch case for patienten in beeld and zkh (#4859
Browse files Browse the repository at this point in the history
)
  • Loading branch information
VWSCoronaDashboard30 authored Sep 4, 2023
1 parent de4fe4e commit 264150d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/app/src/components/choropleth-legenda.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,16 @@ export function ChoroplethLegenda({ title, thresholds, valueAnnotation, pageType
});
}
break;
case 'patienten-in-beeld' || 'ziekenhuis-opnames':
case 'patienten-in-beeld':
if (i === 0 && x.threshold === 0) {
label = commonTexts.common.no_notifications;
} else if (i === 1) {
label = replaceVariablesInText(commonTexts.common.bigger_than_zero_and_less_than_value, {
value_1: formatNumber(thresholds[i + 1].threshold),
});
}
break;
case 'ziekenhuis-opnames':
if (i === 0 && x.threshold === 0) {
label = commonTexts.common.no_notifications;
} else if (i === 1) {
Expand Down

0 comments on commit 264150d

Please sign in to comment.