Skip to content

Commit

Permalink
Use any cast to ignore typescript errors (causing build fail)
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Jan 19, 2024
1 parent d2583aa commit 668790d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/app/season/[seasonNumber]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SeasonPage = async ({ params }: { params: { seasonNumber: string } }) => {
{Object.keys(seasonChartData).map(key => {
if (key.includes("O_ALL")) {
const [_, role, region] = key.split("_")
return <BarChart title={`${region}`} graph={seasonChartData[key].graph} maxY={region === "ALL" ? 1250 : 500} />
return <BarChart title={`${region}`} graph={(seasonChartData as any)[key].graph} maxY={region === "ALL" ? 1250 : 500} />
}
})}
</Card>
Expand All @@ -46,7 +46,7 @@ const SeasonPage = async ({ params }: { params: { seasonNumber: string } }) => {
{Object.keys(seasonChartData).map(key => {
if (key.includes("OFMP")) {
const [_, role, region] = key.split("_")
return <BarChart title={`${role}: ${region}`} graph={seasonChartData[key].graph} maxY={region === "ALL" ? 500 : 300} />
return <BarChart title={`${role}: ${region}`} graph={(seasonChartData as any)[key].graph} maxY={region === "ALL" ? 500 : 300} />
}
})}

Expand All @@ -56,7 +56,8 @@ const SeasonPage = async ({ params }: { params: { seasonNumber: string } }) => {
{Object.keys(seasonChartData).map(key => {
if (key.includes("OSMP")) {
const [_, role, region] = key.split("_")
return <BarChart title={`${role}: ${region}`} graph={seasonChartData[key].graph} maxY={region === "ALL" ? 500 : 300} />
return <BarChart title={`${role}: ${region}`} graph={(seasonChartData as any)[key].graph} maxY={region === "ALL" ? 500 : 300} />

}
})}

Expand All @@ -67,7 +68,7 @@ const SeasonPage = async ({ params }: { params: { seasonNumber: string } }) => {
{Object.keys(seasonChartData).map(key => {
if (key.includes("OTMP")) {
const [_, role, region] = key.split("_")
return <BarChart title={`${role}: ${region}`} graph={seasonChartData[key].graph} maxY={region === "ALL" ? 500 : 300} />
return <BarChart title={`${role}: ${region}`} graph={(seasonChartData as any)[key].graph} maxY={region === "ALL" ? 500 : 300} />
}
})}

Expand Down

0 comments on commit 668790d

Please sign in to comment.