Update app/components/grades/average-chart.tsx
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 2m32s
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 2m32s
This commit is contained in:
parent
7947fca117
commit
e86831f228
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ import { ChartContainer, ChartTooltip, ChartTooltipContent } from "../ui/chart";
|
|||
import { getSubjectEmoji, getSubjectColor } from "~/lib/utils";
|
||||
import type { PeriodResult, User } from "~/lib/api";
|
||||
import { useEffect, useState } from "react";
|
||||
import { HARDCODED_HIDDEN_SUBJECTS } from "./grades-chart"
|
||||
|
||||
export default function AverageChart({
|
||||
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
|
||||
key={index}
|
||||
type="monotone"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue