Updated the Dashboard for Corporate accounts

This commit is contained in:
Tiago Ribeiro
2023-10-30 14:29:41 +00:00
parent 37c889a39a
commit dc13a4a7b7
9 changed files with 333 additions and 70 deletions

View File

@@ -121,6 +121,7 @@ export const getExamsBySession = (stats: Stat[], session: string) => {
export const groupBySession = (stats: Stat[]) => groupBy(stats, "session");
export const groupByDate = (stats: Stat[]) => groupBy(stats, "date");
export const groupByExam = (stats: Stat[]) => groupBy(stats, "exam");
export const groupByModule = (stats: Stat[]) => groupBy(stats, "module");
export const convertToUserSolutions = (stats: Stat[]): UserSolution[] => {