Skip to content
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
Prev Previous commit
Next Next commit
Fixed footer vars
  • Loading branch information
ianvizarra committed Apr 14, 2020
commit ff5a3d430d0958eb473b4ac0d44745d91c09f41b
8 changes: 4 additions & 4 deletions lib/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ exports.historyCountryTracker = (
h,
chartType
) => {
const mortalityPercentage = (d / c) * 100,
recoveredPercentage = (r / c) * 100,
const mortalityPercentage = (deaths / cases) * 100,
recoveredPercentage = (recovered / cases) * 100,
asof = new Date(u),
dates = Object.keys(h.timeline[chartType]),
from = dates[0],
Expand Down Expand Up @@ -316,6 +316,6 @@ exports.historyCountryTracker = (
const tableFooter = table.toString() + br + br + space + green(randomSay());

return name == "Philippines"
? tableFooter + specialfooter
: tableFooter + defaultfooter;
? tableFooter + specialFooter
: tableFooter + defaultFooter;
};