From 003e80c6ff2af03070311764109b96989b66ab25 Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Sun, 6 Jul 2025 00:39:55 +0200 Subject: [PATCH] Updated onTap Handler --- lib/views/active_game_view.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/views/active_game_view.dart b/lib/views/active_game_view.dart index dc0e078..aaea85d 100644 --- a/lib/views/active_game_view.dart +++ b/lib/views/active_game_view.dart @@ -151,12 +151,12 @@ class _ActiveGameViewState extends State { ), backgroundColorActivated: CustomTheme.backgroundColor, - onTap: () => { - gameSession.roundNumber > 1 && - !gameSession.isGameFinished - ? _showEndGameDialog() - : null - }), + onTap: () { + if (gameSession.roundNumber > 1 && + !gameSession.isGameFinished) { + _showEndGameDialog(); + } + }), CupertinoListTile( title: Text( AppLocalizations.of(context).delete_game,