fix: order grades

pull/100/head
Pierre-Louis Guhur 1 year ago
parent 64b295f0fc
commit f22549cf80

@ -40,5 +40,5 @@ export const getGradeColor = (gradeIdx: number, numGrades: number): string => {
if (colors.length < numGrades) {
throw new Error("Issue with the number of colors");
}
return colors[colors.length - gradeIdx - 1]
return colors[gradeIdx]
}

Loading…
Cancel
Save