diff --git a/app/components/tournament/EliminationBracket.tsx b/app/components/tournament/EliminationBracket.tsx index 4e0bb2ade..47f3dbeca 100644 --- a/app/components/tournament/EliminationBracket.tsx +++ b/app/components/tournament/EliminationBracket.tsx @@ -1,5 +1,6 @@ import classNames from "classnames"; import invariant from "tiny-invariant"; +import { matchIsOver } from "~/core/tournament/utils"; import type { BracketModified } from "~/services/tournament"; import { MyCSSProperties, Unpacked } from "~/utils"; @@ -92,6 +93,7 @@ export function EliminationBracket({ key={match.id} match={match} ownTeamName={ownTeamName} + isOver={matchIsOver(round.bestOf, match.score)} /> ); })} @@ -140,10 +142,12 @@ export function Match({ match, hidden, ownTeamName, + isOver, }: { match: Unpacked["matches"]>; hidden?: boolean; ownTeamName?: string; + isOver: boolean; }) { return (