Updated variable name
This commit is contained in:
@@ -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 &&
|
||||||
|
|||||||
Reference in New Issue
Block a user