diff --git a/lib/presentation/views/round_view.dart b/lib/presentation/views/round_view.dart index 2d1f785..45ce0ef 100644 --- a/lib/presentation/views/round_view.dart +++ b/lib/presentation/views/round_view.dart @@ -288,9 +288,10 @@ class _RoundViewState extends State { CupertinoButton( onPressed: _areRoundInputsValid() ? () async { - List boni = _finishRound(); - if (boni.isNotEmpty) { - await _showBonusPopup(context, boni); + List bonusPlayersIndices = _finishRound(); + if (bonusPlayersIndices.isNotEmpty) { + await _showBonusPopup( + context, bonusPlayersIndices); } LocalStorageService.saveGameSessions(); if (!context.mounted) return; @@ -303,9 +304,11 @@ class _RoundViewState extends State { CupertinoButton( onPressed: _areRoundInputsValid() ? () async { - List boni = _finishRound(); - if (boni.isNotEmpty) { - await _showBonusPopup(context, boni); + List bonusPlayersIndices = + _finishRound(); + if (bonusPlayersIndices.isNotEmpty) { + await _showBonusPopup( + context, bonusPlayersIndices); } LocalStorageService.saveGameSessions(); if (widget.gameSession.isGameFinished &&