Fix grand finals connection to 3rd place match with line

This commit is contained in:
Kalle 2026-03-19 18:50:22 +02:00
parent eaf5e15031
commit ab9d3f8a4f

View File

@ -88,6 +88,10 @@ export function EliminationBracketSide(props: EliminationBracketSideProps) {
{matches.map((match, matchIdx) => {
const lineType = (() => {
if (isLastRound) return "none" as const;
if (
nextRound?.name === TOURNAMENT.ROUND_NAMES.THIRD_PLACE_MATCH
)
return "none" as const;
if (nextRoundMatchCount === matches.length)
return "straight" as const;
return matchIdx % 2 === 0