Compare commits
2 Commits
3baec5ac0f
...
e51ff24944
| Author | SHA1 | Date | |
|---|---|---|---|
| e51ff24944 | |||
|
|
c138442530 |
@@ -93,7 +93,7 @@ const GroupMatchCard: React.FC<GroupMatchCardProps> = ({ match, showControls })
|
||||
<Stack gap="sm">
|
||||
<Group justify="space-between" align="center" wrap="nowrap">
|
||||
<Group gap="sm" style={{ flex: 1, minWidth: 0 }}>
|
||||
<TeamAvatar team={match.home} size={32} radius="sm" isRegional={match.tournament.regional} />
|
||||
{match.home && <TeamAvatar team={match.home} size={32} radius="sm" isRegional={match.tournament.regional} />}
|
||||
<Text
|
||||
size="sm"
|
||||
fw={homeWon ? 700 : 500}
|
||||
@@ -124,7 +124,7 @@ const GroupMatchCard: React.FC<GroupMatchCardProps> = ({ match, showControls })
|
||||
|
||||
<Group justify="space-between" align="center" wrap="nowrap">
|
||||
<Group gap="sm" style={{ flex: 1, minWidth: 0 }}>
|
||||
<TeamAvatar team={match.away} size={32} radius="sm" isRegional={match.tournament.regional} />
|
||||
{match.away && <TeamAvatar team={match.away} size={32} radius="sm" isRegional={match.tournament.regional} />}
|
||||
<Text
|
||||
size="sm"
|
||||
fw={awayWon ? 700 : 500}
|
||||
@@ -190,7 +190,7 @@ const GroupMatchCard: React.FC<GroupMatchCardProps> = ({ match, showControls })
|
||||
<MatchForm
|
||||
match={match}
|
||||
onSubmit={handleFormSubmit}
|
||||
isPending={end.isPending}
|
||||
onCancel={editSheet.close}
|
||||
/>
|
||||
</Sheet>
|
||||
)}
|
||||
|
||||
@@ -116,7 +116,7 @@ function generateDescription(config: Partial<GroupConfigOption>): 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user