Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into all-in-issue-no-random
  • Loading branch information
Identity-labs committed Jun 23, 2020
2 parents ed40f8d + e04354d commit f660394
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/classes/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,10 @@ const Game = function (name, host) {
}

this.playerIsChecked = (playr) => {
return this.roundData.bets && this.getCurrentRoundBets().some(a => ((a.player == playr.getUsername()) && (a.bet == 0)));
if (this.roundData.bets) {
const bets = this.getCurrentRoundBets() || [];
return bets.some(a => ((a.player == playr.getUsername()) && (a.bet == 0)));
}
}

this.findFirstToGoPlayer = () => {
Expand Down

0 comments on commit f660394

Please sign in to comment.