Skip to content

Commit

Permalink
Disable matchup history for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jwngr committed Jul 9, 2024
1 parent cf3e9ef commit 81a662c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const CompletedGameSummary: React.FC<{
highlightsYouTubeVideoId={game.highlightsYouTubeVideoId ?? null}
/>

<MatchupHistory selectedGame={game} selectedSeason={season} />
{/* TODO: Re-enable matchup history after improving data loading performance. */}
{/* <MatchupHistory selectedGame={game} selectedSeason={season} /> */}

<CompletedGameStats
stats={game.stats ?? null}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ export const FutureGameSummary: React.FC<{
<GameCoverage game={game} />
<Location game={game} />
</CoverageLocationWrapper>
<MatchupHistory selectedGame={game} selectedSeason={selectedSeason} />
{/* TODO: Re-enable matchup history after improving data loading performance. */}
{/* <MatchupHistory selectedGame={game} selectedSeason={selectedSeason} /> */}
</StatsWrapper>
</FutureGameWrapper>
);
Expand Down
1 change: 1 addition & 0 deletions website/src/lib/schedules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class Schedules {
const scheduleModule = await schedulesGlob[`../resources/schedules/${season}.json`]();
return (scheduleModule as {readonly default: readonly GameInfo[]}).default;
} catch (error) {
// TODO: Add error logging.
return [];
}
}
Expand Down

0 comments on commit 81a662c

Please sign in to comment.