diff --git a/client/src/App.js b/client/src/App.js index a93fbae..08aed7f 100755 --- a/client/src/App.js +++ b/client/src/App.js @@ -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;