euchre-live

Euchre web-app for the socially distant family
git clone git://git.alexkarle.com/euchre-live.git
Log | Files | Refs | README | LICENSE

commit 484f7cf28ea747e3818a8130157b9b4947726ab1 (patch)
parent f8c94168a83e1a287c0c7dfea30f00a650633143
Author: Chris Karle <chriskarle@hotmail.com>
Date:   Wed, 22 Apr 2020 18:49:38 -0400

fix: CardTable

Fixes a failure to recognize new hand dealt if all
players pass on trump twice.

Diffstat:
Massets/components/CardTable.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 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;