Fixed wrong pointLimit shown

This commit is contained in:
2025-06-12 10:21:52 +02:00
parent 5fc3162213
commit 62750cbbf0
3 changed files with 7 additions and 7 deletions

View File

@@ -1,6 +1,7 @@
import 'package:cabo_counter/data/game_manager.dart';
import 'package:cabo_counter/services/local_storage_service.dart';
import 'package:cabo_counter/utility/custom_theme.dart';
import 'package:cabo_counter/utility/globals.dart';
import 'package:cabo_counter/views/active_game_view.dart';
import 'package:cabo_counter/views/create_game_view.dart';
import 'package:cabo_counter/views/settings_view.dart';
@@ -185,7 +186,7 @@ class _MainMenuViewState extends State<MainMenuView> {
/// Translates the game mode boolean into the corresponding String.
/// If [pointLimit] is true, it returns '101 Punkte', otherwise it returns 'Unbegrenzt'.
String _translateGameMode(bool pointLimit) {
if (pointLimit) return '101 Punkte';
if (pointLimit) return '${Globals.pointLimit} Punkte';
return 'Unbegrenzt';
}