Skip to content

Commit

Permalink
Merge pull request #675 from UKHSA-Internal/sandbox
Browse files Browse the repository at this point in the history
Sandbox -> v3-development
  • Loading branch information
adebayoolabintan authored Jun 20, 2023
2 parents 5215bde + c133252 commit 41e304d
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/components/Card/Card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41e304d

Please sign in to comment.