Skip to content

Commit

Permalink
Commented out active and recovered #32
Browse files Browse the repository at this point in the history
Signed-off-by: sarthakpranesh <[email protected]>
  • Loading branch information
sarthakpranesh committed Dec 25, 2021
1 parent 648f3ea commit e525c16
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/services/API/Disease.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export type CountryCases = GlobalCases;

export type TimelineData = {
date: string;
active: number;
// active: number;
vaccinated: number;
total: number;
recovered: number;
// recovered: number;
deaths: number;
};

Expand Down Expand Up @@ -117,12 +117,12 @@ export const fetchTimelineData: (country: string) => Promise<TimelineData[]> = (
: casesTimeline.recovered[date];
const r: TimelineData = {
date,
active:
casesTimeline.cases[date] -
(lastRecovered + casesTimeline.deaths[date]),
// active:
// casesTimeline.cases[date] -
// (lastRecovered + casesTimeline.deaths[date]),
vaccinated: vaccineTimeline[date] || 0,
total: casesTimeline.cases[date],
recovered: lastRecovered,
// recovered: lastRecovered,
deaths: casesTimeline.deaths[date],
};
return r;
Expand Down

0 comments on commit e525c16

Please sign in to comment.