Fix winner dialog not showing on multi-game sessions
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
6779a8ac26
commit
c9ba74dfae
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user