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;