diff --git a/lib/presentation/views/main_menu/create_game/create_game_view.dart b/lib/presentation/views/main_menu/create_game/create_game_view.dart index 59e3c0d..7a7d904 100644 --- a/lib/presentation/views/main_menu/create_game/create_game_view.dart +++ b/lib/presentation/views/main_menu/create_game/create_game_view.dart @@ -141,14 +141,17 @@ class _CreateGameViewState extends State { ), ), ); - if (selectedGameIndex != -1) { - setState(() { + setState(() { + if (selectedGameIndex != -1) { + print('selectedGameIndex: $selectedGameIndex'); selectedRuleset = games[selectedGameIndex].$3; selectedRulesetIndex = rulesets.indexWhere( (r) => r.$1 == selectedRuleset, ); - }); - } + } else { + selectedRuleset = null; + } + }); }, ), ChooseTile(