Updated variable name

This commit is contained in:
2025-07-14 10:16:42 +02:00
parent c24c271c82
commit a8298dfa21

View File

@@ -288,9 +288,10 @@ class _RoundViewState extends State<RoundView> {
CupertinoButton( CupertinoButton(
onPressed: _areRoundInputsValid() onPressed: _areRoundInputsValid()
? () async { ? () async {
List<int> boni = _finishRound(); List<int> bonusPlayersIndices = _finishRound();
if (boni.isNotEmpty) { if (bonusPlayersIndices.isNotEmpty) {
await _showBonusPopup(context, boni); await _showBonusPopup(
context, bonusPlayersIndices);
} }
LocalStorageService.saveGameSessions(); LocalStorageService.saveGameSessions();
if (!context.mounted) return; if (!context.mounted) return;
@@ -303,9 +304,11 @@ class _RoundViewState extends State<RoundView> {
CupertinoButton( CupertinoButton(
onPressed: _areRoundInputsValid() onPressed: _areRoundInputsValid()
? () async { ? () async {
List<int> boni = _finishRound(); List<int> bonusPlayersIndices =
if (boni.isNotEmpty) { _finishRound();
await _showBonusPopup(context, boni); if (bonusPlayersIndices.isNotEmpty) {
await _showBonusPopup(
context, bonusPlayersIndices);
} }
LocalStorageService.saveGameSessions(); LocalStorageService.saveGameSessions();
if (widget.gameSession.isGameFinished && if (widget.gameSession.isGameFinished &&