From 81a662c77ff405f808593747f063688a93e03be5 Mon Sep 17 00:00:00 2001 From: Jacob Wenger Date: Tue, 9 Jul 2024 12:38:45 -0700 Subject: [PATCH] Disable matchup history for now --- .../src/components/gameSummary/CompletedGameSummary/index.tsx | 3 ++- website/src/components/gameSummary/FutureGameSummary/index.tsx | 3 ++- website/src/lib/schedules.ts | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/website/src/components/gameSummary/CompletedGameSummary/index.tsx b/website/src/components/gameSummary/CompletedGameSummary/index.tsx index 790c21ee..38f28a7e 100644 --- a/website/src/components/gameSummary/CompletedGameSummary/index.tsx +++ b/website/src/components/gameSummary/CompletedGameSummary/index.tsx @@ -31,7 +31,8 @@ export const CompletedGameSummary: React.FC<{ highlightsYouTubeVideoId={game.highlightsYouTubeVideoId ?? null} /> - + {/* TODO: Re-enable matchup history after improving data loading performance. */} + {/* */} - + {/* TODO: Re-enable matchup history after improving data loading performance. */} + {/* */} ); diff --git a/website/src/lib/schedules.ts b/website/src/lib/schedules.ts index c6cabca3..8ae483ea 100644 --- a/website/src/lib/schedules.ts +++ b/website/src/lib/schedules.ts @@ -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 []; } }