Stats for Level exam are now being properly calculated

This commit is contained in:
Joao Ramos
2024-02-18 11:09:25 +00:00
parent 04f97b62c3
commit 29cae5c3d2
2 changed files with 9 additions and 5 deletions

View File

@@ -228,10 +228,6 @@ export default function StudentDashboard({user}: Props) {
<span className="text-lg font-bold">Score History</span>
<div className="-md:grid-rows-4 grid gap-6 md:grid-cols-2">
{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;