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

This commit is contained in:
Nathan 2025-09-30 18:07:47 +02:00
parent 7947fca117
commit e86831f228

View file

@ -3,6 +3,7 @@ import { ChartContainer, ChartTooltip, ChartTooltipContent } from "../ui/chart";
import { getSubjectEmoji, getSubjectColor } from "~/lib/utils"; import { getSubjectEmoji, getSubjectColor } from "~/lib/utils";
import type { PeriodResult, User } from "~/lib/api"; import type { PeriodResult, User } from "~/lib/api";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { HARDCODED_HIDDEN_SUBJECTS } from "./grades-chart"
export default function AverageChart({ export default function AverageChart({
averages, averages,
@ -53,7 +54,7 @@ export default function AverageChart({
} }
}} }}
/> />
{subjects.map((subject, index) => ( {subjects.filter((s) => !HARDCODED_HIDDEN_SUBJECTS.includes(s)).map((subject, index) => (
<Line <Line
key={index} key={index}
type="monotone" type="monotone"