From 4d8162e6dd94599d6741b7f337e806a3c87dd222 Mon Sep 17 00:00:00 2001 From: Jack MB Date: Fri, 31 May 2024 11:37:01 +0200 Subject: [PATCH] fix ch2 play pause bug --- hooks/usePlayerState.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hooks/usePlayerState.ts b/hooks/usePlayerState.ts index 903fb8b..469a1ef 100644 --- a/hooks/usePlayerState.ts +++ b/hooks/usePlayerState.ts @@ -83,7 +83,10 @@ export default function usePlayerState({ }, [audioRef]); useEffect(() => { - if (activePlayer !== ActivePlayer.RADIO_CO) { + if ( + activePlayer !== ActivePlayer.CH1 && + activePlayer !== ActivePlayer.CH2 + ) { pause(); } }, [activePlayer]);