diff --git a/ts/src/stats/future-due.ts b/ts/src/stats/future-due.ts index 12cff3fda..13334ffbf 100644 --- a/ts/src/stats/future-due.ts +++ b/ts/src/stats/future-due.ts @@ -22,7 +22,7 @@ export interface GraphData { export function gatherData(data: pb.BackendProto.GraphsOut): GraphData { const due = (data.cards as pb.BackendProto.Card[]) - .filter((c) => c.queue == CardQueue.Review) // && c.due >= data.daysElapsed) + .filter((c) => [CardQueue.Review, CardQueue.DayLearn].includes(c.queue)) .map((c) => c.due - data.daysElapsed); const dueCounts = rollup( due, diff --git a/ts/tsconfig.json b/ts/tsconfig.json index 45345549c..7324559e9 100644 --- a/ts/tsconfig.json +++ b/ts/tsconfig.json @@ -2,7 +2,7 @@ "exclude": ["node_modules", "dist"], "compilerOptions": { /* Basic Options */ - "target": "es6", + "target": "es2016", "module": "es6", "declaration": false /* Generates corresponding '.d.ts' file. */, "rootDir": "src",