MVP #141

Merged
flixcoo merged 705 commits from development into main 2026-01-09 12:55:50 +00:00
Showing only changes of commit 82b344a145 - Show all commits

View File

@@ -127,13 +127,13 @@ class _StatisticsViewState extends State<StatisticsView> {
// Getting the winners // Getting the winners
for (var game in games) { for (var game in games) {
final winner = game.winner; final winner = game.winner;
if (winner != null && winner.isNotEmpty) { if (winner != null) {
final index = winCounts.indexWhere((entry) => entry.$1 == winner); final index = winCounts.indexWhere((entry) => entry.$1 == winner.id);
if (index != -1) { if (index != -1) {
final current = winCounts[index].$2; final current = winCounts[index].$2;
winCounts[index] = (winner, current + 1); winCounts[index] = (winner.id, current + 1);
} else { } else {
winCounts.add((winner, 1)); winCounts.add((winner.id, 1));
} }
} }
} }