From c9ba74dfae6ebaaccdda168f64a8879dfbac35ef Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Tue, 24 May 2022 14:55:49 -0700 Subject: [PATCH] Fix winner dialog not showing on multi-game sessions Signed-off-by: James Ketrenos --- client/src/App.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/App.js b/client/src/App.js index 18fca94..14f80a1 100755 --- a/client/src/App.js +++ b/client/src/App.js @@ -127,6 +127,9 @@ const Table = () => { } if ('state' in data.update && data.update.state !== state) { console.log(`App - setting game state: ${data.update.state}`); + if (data.update.state !== 'winner' && winnerDismissed) { + setWinnerDismissed(false); + } setState(data.update.state); } if ('color' in data.update && data.update.color !== color) {