add mounted check before calling setState in match_view

This commit is contained in:
2025-12-24 13:01:16 +01:00
parent f9722bc762
commit 7eb25221d7

View File

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