Fixed PR problems
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 37s
Pull Request Pipeline / lint (pull_request) Successful in 44s

This commit is contained in:
2026-02-23 21:34:29 +01:00
parent 9e9491c98e
commit 527ffd194f
7 changed files with 85 additions and 72 deletions

View File

@@ -266,14 +266,4 @@ class _CreateMatchViewState extends State<CreateMatchView> {
}
}
}
/// Determines whether the "Create Match" button should be enabled.
///
/// Returns `true` if:
/// - A ruleset is selected AND
/// - Either a group is selected OR at least 2 players are selected
bool _enableCreateGameButton() {
return (selectedGroup != null ||
(selectedPlayers != null && selectedPlayers!.length > 1));
}
}