Updated the code so the user levels update depending on their performance
This commit is contained in:
@@ -116,6 +116,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 groupByModule = (stats: Stat[]) => groupBy(stats, "module");
|
||||
|
||||
export const convertToUserSolutions = (stats: Stat[]): UserSolution[] => {
|
||||
return stats.map((stat) => ({
|
||||
|
||||
Reference in New Issue
Block a user