Skip to content

Commit

Permalink
always call autoNext, even if not used
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 committed Sep 10, 2023
1 parent 0ae53b0 commit 1064bf6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/features/player/components/playerbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ export const Playerbar = () => {
const { autoNext } = usePlayerControls();

const autoNextFn = useCallback(() => {
const playerData = autoNext();

if (remote) {
const playerData = autoNext();
remote.updateSong({
currentTime: 0,
song: playerData.current.song,
Expand Down

0 comments on commit 1064bf6

Please sign in to comment.