Update app/components/grades/grades-chart.tsx
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 2m56s

This commit is contained in:
Nathan 2025-09-30 18:03:02 +02:00
parent 3a15e60644
commit 7947fca117

View file

@ -5,6 +5,8 @@ import type { Grade, User } from "~/lib/api";
import { useEffect, useState } from "react";
import { DateTime } from "luxon";
export const HARDCODED_HIDDEN_SUBJECTS = ["Colles préfet"]
export default function GradesChart({
grades,
subjects,
@ -51,7 +53,7 @@ export default function GradesChart({
}
}}
/>
{subjects.map((subject, index) => (
{subjects.filter((s) => !HARDCODED_HIDDEN_SUBJECTS.includes(s)).map((subject, index) => (
<Line
key={index}
type="linear"