From 18bc7d95618e0415893cb5981453981bcb4538fe Mon Sep 17 00:00:00 2001 From: Kristoffer Longva Eriksen Date: Fri, 22 Apr 2022 16:13:48 +0200 Subject: [PATCH] fixed getting tournament props in match component in overview --- src/client/src/TournamentOverview.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/src/TournamentOverview.js b/src/client/src/TournamentOverview.js index 04703ca..26333d4 100644 --- a/src/client/src/TournamentOverview.js +++ b/src/client/src/TournamentOverview.js @@ -16,10 +16,12 @@ function showError(error) { } function TournamentTier(props){ + const { tournamentId } = useParams(); + let roundTypes = ["finals", "semifinals", "quarterfinals", "eighthfinals", "sixteenthfinals", "thirtysecondfinals"]; let matches = []; for (let i = 0; i < props.matches.length; i++) { - matches.push(); + matches.push(); } return(