From f1947353412042b3ce5ccc1180e21282434a175a Mon Sep 17 00:00:00 2001 From: Jaroslaw Michalski Date: Mon, 19 Jun 2023 19:19:05 +0100 Subject: [PATCH] adjust radio button options names to new values --- src/components/Card/Card.js | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/src/components/Card/Card.js b/src/components/Card/Card.js index d87a2d9d..a2e0bac5 100644 --- a/src/components/Card/Card.js +++ b/src/components/Card/Card.js @@ -251,19 +251,16 @@ const CardContent = ({ tabs: singleOptionTabs=null, cardType, download=[], param // that depends on the active tab (All/First episodes/Reinfections) const getDownloadUrl = () => { if (heading === "Cases by specimen date age demographics") { - var metric = "" + var metric = ["newCasesBySpecimenDateAgeDemographics"] switch (active) { - case 'All': - metric = ["newCasesBySpecimenDateAgeDemographics"]; - break; - case 'First episodes': - metric = ["newFirstEpisodesBySpecimenDateAgeDemographics"]; - break; - case 'Reinfections': - metric = ["newReinfectionsBySpecimenDateAgeDemographics"]; - break; - default: - metric = download; + case 'First episodes': + metric = ["newFirstEpisodesBySpecimenDateAgeDemographics"]; + break; + case 'Reinfections': + metric = ["newReinfectionsBySpecimenDateAgeDemographics"]; + break; + case 'Cases': + default: } return fieldToStructure(metric, params)