From 04f97b62c38407c65911ba994d1b020c806c691b Mon Sep 17 00:00:00 2001 From: Joao Ramos Date: Sat, 17 Feb 2024 14:22:46 +0000 Subject: [PATCH] Filtered out level from students history display --- src/dashboards/Student.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dashboards/Student.tsx b/src/dashboards/Student.tsx index c22915c0..d84f35d2 100644 --- a/src/dashboards/Student.tsx +++ b/src/dashboards/Student.tsx @@ -227,7 +227,12 @@ export default function StudentDashboard({user}: Props) {
Score History
- {MODULE_ARRAY.map((module) => { + {MODULE_ARRAY + // filtered out level as the questions for a level test are registed as the other modules + // therefore there are no stats to display on the level section + // for future reference, this data is registered on /api/stats/update.ts:90 + .filter((module) => module !== 'level') + .map((module) => { const desiredLevel = user.desiredLevels[module] || 9; const level = user.levels[module] || 0; return (