From 472f94257ef87a3d23d417e0ecb6108f98399b23 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Fri, 17 May 2024 18:57:40 +0200 Subject: [PATCH] Fix : prevent join sound to play if game is already started --- components/GameBoard.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/components/GameBoard.vue b/components/GameBoard.vue index c5aea63..8282c84 100644 --- a/components/GameBoard.vue +++ b/components/GameBoard.vue @@ -33,6 +33,7 @@ watch( () => goStore.current_game?.players, (newList, oldList) => { if (!oldList || !newList) { return } + if (goStore.current_game?.started) { return } if (newList?.length > oldList.length) { playSound('/sounds/teleport.mp3') }