This commit is contained in:
adueck 2023-01-18 23:51:26 +05:00
parent c19b126c07
commit 21893736f8
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ function getPercentageComplete(
): "not logged in" | number {
if (!tests) return "not logged in";
const chapterTestIds = chapter.items.map(gr => gr.id);
const userCompletedIds = tests.map(t => t.id);
const userCompletedIds = tests.filter(t => t.done).map(t => t.id);
const required = chapterTestIds.length;
const completed = chapterTestIds