From d0fd808804b6c3ce8c8142c61434a098966cb0d4 Mon Sep 17 00:00:00 2001 From: Sha-dos <77746688+Sha-dos@users.noreply.github.com> Date: Wed, 28 Feb 2024 19:38:32 -0600 Subject: [PATCH] Suppress errors --- app/viewer/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/viewer/page.tsx b/app/viewer/page.tsx index 9b24849..33e4fd3 100644 --- a/app/viewer/page.tsx +++ b/app/viewer/page.tsx @@ -39,6 +39,7 @@ export default function ViewerPage() { // Convert the map to the required format of Data const matches: { matchNumber: number, teams: TeamMatchData[] }[] = []; +//@ts-ignore for (const [matchNumber, teams] of matchesMap.entries()) { matches.push({ matchNumber, teams }); } @@ -46,11 +47,10 @@ export default function ViewerPage() { return { matches }; } - const handleTeamSelect = (e) => { - setSelectedTeam(e.target.value) - } + useEffect(() => { +//@ts-ignore fetchAllMatches().then(value => convertMatches(value).then(value1 => setMatchData(value1))); }, []);