Will it fix web version?

This commit is contained in:
dan63047 2023-07-22 15:23:11 +03:00
parent fd8c1fc16d
commit f7784cb494
1 changed files with 6 additions and 1 deletions

View File

@ -72,7 +72,12 @@ class TetrioService extends DB {
Future<void> _loadPlayers() async {
final allPlayers = await getAllPlayers();
_players = allPlayers.toList().first; // ???
try{
_players = allPlayers.toList().first; // ???
}catch (e){
developer.log("_loadPlayers: allPlayers.toList().first did oopsie", name: "services/tetrio_crud", error: e);
_players = {};
}
_tetrioStreamController.add(_players);
}