Fix: Not updated match view after updating matches players
All checks were successful
Pull Request Pipeline / test (pull_request) Successful in 38s
Pull Request Pipeline / lint (pull_request) Successful in 44s

This commit is contained in:
2026-03-07 21:50:25 +01:00
parent 0b118800e4
commit 0822039a5f
2 changed files with 5 additions and 13 deletions

View File

@@ -144,7 +144,7 @@ class _MatchViewState extends State<MatchView> {
if (mounted) {
setState(() {
final loadedMatches = results[0] as List<Match>;
matches = loadedMatches
matches = [...loadedMatches]
..sort((a, b) => b.createdAt.compareTo(a.createdAt));
isLoading = false;
});