Skip to content

Commit

Permalink
disable match selection if no teams
Browse files Browse the repository at this point in the history
  • Loading branch information
istar410 committed Feb 14, 2025
1 parent 32d57fb commit 1eff767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/AdminMatch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const patch_match = async () => {
};
const select_match = <M extends GroupMatch | KnockoutMatch | SwissMatch>(m: M) => {
if (!selectable || edit_mode.value) return;
if (!selectable || edit_mode.value || m.teams.length === 0) return;
if (m.status === MatchStatus.SCHEDULED) {
if (selected_matchs.value?.has(m.id)) {
Expand Down

0 comments on commit 1eff767

Please sign in to comment.