From c138442530f53ffdf3edecf067235198369d4cfc Mon Sep 17 00:00:00 2001 From: yohlo Date: Sun, 1 Mar 2026 21:46:59 -0600 Subject: [PATCH] fix --- src/features/tournaments/components/group-match-card.tsx | 6 +++--- src/features/tournaments/utils/group-config.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/features/tournaments/components/group-match-card.tsx b/src/features/tournaments/components/group-match-card.tsx index 1b202a3..75f25e8 100644 --- a/src/features/tournaments/components/group-match-card.tsx +++ b/src/features/tournaments/components/group-match-card.tsx @@ -93,7 +93,7 @@ const GroupMatchCard: React.FC = ({ match, showControls }) - + {match.home && } = ({ match, showControls }) - + {match.away && } = ({ match, showControls }) )} diff --git a/src/features/tournaments/utils/group-config.ts b/src/features/tournaments/utils/group-config.ts index 0b02e82..4aa1582 100644 --- a/src/features/tournaments/utils/group-config.ts +++ b/src/features/tournaments/utils/group-config.ts @@ -116,7 +116,7 @@ function generateDescription(config: Partial): string { let desc = ''; - if (groups_with_extra && groups_with_extra > 0) { + if (groups_with_extra && groups_with_extra > 0 && teams_per_group) { const largerGroupSize = teams_per_group + 1; const smallerGroupCount = num_groups! - groups_with_extra;