Browse Source

Fix player number when volume fade is disabled

master
jeffvli 3 years ago
parent
commit
ff28edf572
  1. 2
      src/components/player/Player.tsx

2
src/components/player/Player.tsx

@ -185,7 +185,7 @@ const listenHandler = (
if (player === 1) { if (player === 1) {
dispatch(setPlayerVolume({ player: 2, volume: playQueue.volume })); dispatch(setPlayerVolume({ player: 2, volume: playQueue.volume }));
} else { } else {
dispatch(setPlayerVolume({ player: 2, volume: playQueue.volume })); dispatch(setPlayerVolume({ player: 1, volume: playQueue.volume }));
} }
nextPlayerRef.current.audioEl.current.play(); nextPlayerRef.current.audioEl.current.play();
dispatch(setIsFading(true)); dispatch(setIsFading(true));

Loading…
Cancel
Save