Skip to content

Commit

Permalink
fix ch2 play pause bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack MB committed May 31, 2024
1 parent 2135113 commit 4d8162e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hooks/usePlayerState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ export default function usePlayerState({
}, [audioRef]);

useEffect(() => {
if (activePlayer !== ActivePlayer.RADIO_CO) {
if (
activePlayer !== ActivePlayer.CH1 &&
activePlayer !== ActivePlayer.CH2
) {
pause();
}
}, [activePlayer]);
Expand Down

0 comments on commit 4d8162e

Please sign in to comment.