feat: bericht in assignment pagina van student als er nog geen groepen bestaan

This commit is contained in:
Joyelle Ndagijimana 2025-05-15 23:02:07 +02:00
parent 5805294f4c
commit f83d5b54c0
4 changed files with 112 additions and 99 deletions

View file

@ -0,0 +1,5 @@
import type { LearningPath } from "@/data-objects/learning-paths/learning-path.ts";
export function calculateProgress(lp: LearningPath): number {
return ((lp.amountOfNodes - lp.amountOfNodesLeft) / lp.amountOfNodes) * 100;
}