Fixed bug that game session would reset afer creating it

This commit is contained in:
2025-06-11 14:45:20 +02:00
parent c8b9e71581
commit c7c48d6022
3 changed files with 15 additions and 6 deletions

View File

@@ -28,6 +28,7 @@ class LocalStorageService {
/// Saves the game sessions to a local JSON file.
static Future<void> saveGameSessions() async {
print('[local_storage_service.dart] Versuche, Daten zu speichern...');
try {
final file = await _getFilePath();
final jsonFile = getJsonFile();