Only say it is your turn when not in lobby
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
6a7902c32f
commit
7330a6a7fc
@ -374,7 +374,7 @@ const Table = () => {
|
||||
}, [state, volume]);
|
||||
|
||||
useEffect(() => {
|
||||
if (turn && turn.color === color) {
|
||||
if (turn && turn.color === color && state !== 'lobby') {
|
||||
if (!audioEffects.yourTurn) {
|
||||
audioEffects.yourTurn = loadAudio('its-your-turn.mp3');
|
||||
audioEffects.yourTurn.volume = volume * volume;
|
||||
|
Loading…
x
Reference in New Issue
Block a user