Removed print
This commit is contained in:
@@ -214,8 +214,6 @@ class _HomeViewState extends State<HomeView> {
|
|||||||
Future<void> updatedWinnerinRecentMatches(String matchId) async {
|
Future<void> updatedWinnerinRecentMatches(String matchId) async {
|
||||||
final db = Provider.of<AppDatabase>(context, listen: false);
|
final db = Provider.of<AppDatabase>(context, listen: false);
|
||||||
final winner = await db.matchDao.getWinner(matchId: matchId);
|
final winner = await db.matchDao.getWinner(matchId: matchId);
|
||||||
print('Winner for match $matchId: ${winner?.name}');
|
|
||||||
|
|
||||||
final matchIndex = recentMatches.indexWhere((match) => match.id == matchId);
|
final matchIndex = recentMatches.indexWhere((match) => match.id == matchId);
|
||||||
if (matchIndex != -1) {
|
if (matchIndex != -1) {
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|||||||
Reference in New Issue
Block a user