Fix statistics UI

This commit is contained in:
Nicholas Zuber 2020-12-05 11:18:47 -05:00
parent 3295789335
commit baefcb0276

View File

@ -691,12 +691,12 @@ function Scene({
};
readStatistics = readStatistics.map(n => parseInt(n, 10));
// const lastWeekStats = readStatistics.slice(0, 7);
// const thisWeekStats = readStatistics.slice(7);
const lastWeekStats = readStatistics.slice(0, 7);
const thisWeekStats = readStatistics.slice(7);
// Faux stats for pretty screenshots.
const lastWeekStats = [4, 2, 7, 4, 5, 8, 1];
const thisWeekStats = [7, 8, 5, 6, 4, 9, 12];
// const lastWeekStats = [4, 2, 7, 4, 5, 8, 1];
// const thisWeekStats = [7, 8, 5, 6, 4, 9, 12];
const percentageDeltaToday = getPercentageDelta(counts.cur, counts.prev);
const highestRepoReadCount = Object.values(reposReadCounts).reduce(