From d1df95da2dd61cbcfcd5a79a6509a5ce1dd53fd0 Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Tue, 28 Dec 2021 09:02:55 +0200 Subject: [PATCH] Seeding v=match complete --- app/components/tournament/BracketActions.tsx | 2 +- .../tournament/EliminationBracket.tsx | 4 +- prisma/seed/script.ts | 53 +++++++++++++++++++ 3 files changed, 57 insertions(+), 2 deletions(-) diff --git a/app/components/tournament/BracketActions.tsx b/app/components/tournament/BracketActions.tsx index 3d4e1eb35..b58348afa 100644 --- a/app/components/tournament/BracketActions.tsx +++ b/app/components/tournament/BracketActions.tsx @@ -52,7 +52,7 @@ export function BracketActions() { const higherCount = match.score ? Math.max(match.score[0], match.score[1]) : 0; - const isNotOver = higherCount > match.bestOf / 2; + const isNotOver = higherCount < match.bestOf / 2; return hasBothParticipants && isOwnMatch && isNotOver; }); diff --git a/app/components/tournament/EliminationBracket.tsx b/app/components/tournament/EliminationBracket.tsx index 7f3f2bca7..4e0bb2ade 100644 --- a/app/components/tournament/EliminationBracket.tsx +++ b/app/components/tournament/EliminationBracket.tsx @@ -85,7 +85,9 @@ export function EliminationBracket({ return (