feat: bericht in assignment pagina van student als er nog geen groepen bestaan
This commit is contained in:
parent
5805294f4c
commit
f83d5b54c0
4 changed files with 112 additions and 99 deletions
5
frontend/src/utils/assignment-utils.ts
Normal file
5
frontend/src/utils/assignment-utils.ts
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue