Skip to content

Commit

Permalink
Suppress errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Sha-dos authored Feb 29, 2024
1 parent 2e38d6a commit d0fd808
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/viewer/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,18 @@ 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 });
}

return { matches };
}

const handleTeamSelect = (e) => {
setSelectedTeam(e.target.value)
}


useEffect(() => {
//@ts-ignore
fetchAllMatches().then(value => convertMatches(value).then(value1 => setMatchData(value1)));
}, []);

Expand Down

0 comments on commit d0fd808

Please sign in to comment.