Removed the console.log

This commit is contained in:
Tiago Ribeiro
2023-11-09 14:56:40 +00:00
parent 19624e97bd
commit a38e5e2f0a

View File

@@ -74,7 +74,6 @@ export default function History({user}: {user: User}) {
useEffect(() => { useEffect(() => {
if (stats && !isStatsLoading) { if (stats && !isStatsLoading) {
console.log(stats);
setGroupedStats(groupByDate(stats)); setGroupedStats(groupByDate(stats));
} }
}, [stats, isStatsLoading]); }, [stats, isStatsLoading]);
@@ -84,8 +83,6 @@ export default function History({user}: {user: User}) {
}; };
const filterStatsByDate = (stats: {[key: string]: Stat[]}) => { const filterStatsByDate = (stats: {[key: string]: Stat[]}) => {
console.log(filter);
if (filter && filter !== "assignments") { if (filter && filter !== "assignments") {
const filterDate = moment() const filterDate = moment()
.subtract({[filter as string]: 1}) .subtract({[filter as string]: 1})
@@ -107,8 +104,6 @@ export default function History({user}: {user: User}) {
filteredStats[timestamp] = [...stats[timestamp].filter((s) => !!s.assignment)]; filteredStats[timestamp] = [...stats[timestamp].filter((s) => !!s.assignment)];
}); });
console.log(filteredStats);
return filteredStats; return filteredStats;
} }