From 7330a6a7fcc10ccd61cc0a5fb35bb8f812085da2 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 29 Jun 2022 09:13:14 -0700 Subject: [PATCH] Only say it is your turn when not in lobby Signed-off-by: James Ketrenos --- client/src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;