From 484f7cf28ea747e3818a8130157b9b4947726ab1 Mon Sep 17 00:00:00 2001 From: Chris Karle Date: Wed, 22 Apr 2020 18:49:38 -0400 Subject: [PATCH] fix: CardTable Fixes a failure to recognize new hand dealt if all players pass on trump twice. --- assets/components/CardTable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assets/components/CardTable.js b/assets/components/CardTable.js index 39e42d4..323f640 100644 --- a/assets/components/CardTable.js +++ b/assets/components/CardTable.js @@ -102,7 +102,9 @@ export default class CardTable extends React.Component { processVote = (msg) => { if (this.state.phase == 'lobby') { this.gameStartSetup(msg); - } else if (this.state.phase == 'pause') { + } else if (this.state.phase == 'pause' || + (this.state.phase == 'vote2' && msg.game.pass_count == 0)) { + // second condition is for all players pass trump twice this.trumpStartSetup(msg); } const {leftSeat, rightSeat, partnerSeat, mySeat} = this.state; -- libgit2 1.1.1