diff --git a/src/components/Scoreboard/index.tsx b/src/components/Scoreboard/index.tsx index 2e0fd9e..89b1cb7 100644 --- a/src/components/Scoreboard/index.tsx +++ b/src/components/Scoreboard/index.tsx @@ -37,8 +37,8 @@ export function ScoreboardTable(props: ScoreboardTableProps) { {idx + 1} - - + + {user.name} @@ -117,12 +117,11 @@ export default function Scoreboard(props: ScoreboardProps) { const data_full = await response_full.json() // console.log(endpoint_scoreboard) const data = data_full.data; - console.log(data.data); // const data = test_scoreboard; const beginner = data.filter((t : any) => t.bracket_name === "Beginner"); const advanced = data.filter((t : any) => t.bracket_name !== "Beginner"); - setMatchedScoreboard(beginner as CTFdScoreboardUserTeam[]); - setUnmatchedScoreboard(advanced as CTFdScoreboardUserTeam[]); + setMatchedScoreboard(advanced as CTFdScoreboardUserTeam[]); + setUnmatchedScoreboard(beginner as CTFdScoreboardUserTeam[]); } fetchScoreboard(); setInterval(fetchScoreboard, 1000 * 10);