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))); }, []);