This is better

This commit is contained in:
Tiago Ribeiro
2024-03-24 03:24:12 +00:00
parent 445e486cd2
commit f320fee416

View File

@@ -74,7 +74,6 @@ export default function History({user}: {user: User}) {
setGroupedStats( setGroupedStats(
groupByDate( groupByDate(
stats.filter((x) => { stats.filter((x) => {
if (x.solutions.length === 0) return false;
if ((x.module === "writing" || x.module === "speaking") && !x.isDisabled && !x.solutions.every((y) => "evaluation" in y)) if ((x.module === "writing" || x.module === "speaking") && !x.isDisabled && !x.solutions.every((y) => "evaluation" in y))
return false; return false;
return true; return true;