From fc2a6323fa4141b05e2f35881de516e68c1c4485 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sat, 16 Apr 2022 21:09:55 +0300 Subject: [PATCH] Don't show match as link if 0-0 Closes #707 --- app/components/tournament/EliminationBracketMatch.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/tournament/EliminationBracketMatch.tsx b/app/components/tournament/EliminationBracketMatch.tsx index 3a27e92dc..424877898 100644 --- a/app/components/tournament/EliminationBracketMatch.tsx +++ b/app/components/tournament/EliminationBracketMatch.tsx @@ -30,8 +30,9 @@ export function EliminationBracketMatch({ const Container = ({ children }: { children: React.ReactNode }) => { const hasBothParticipants = (match.participants?.filter(Boolean).length ?? 0) > 1; + const atLeastOneStageReported = match.score?.some((s) => s > 0); - if (hasBothParticipants) + if (hasBothParticipants && atLeastOneStageReported) return (