From 1064bf63b0dc6f2ff1d0e413401ca293a827c282 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Sun, 10 Sep 2023 13:27:09 -0700 Subject: [PATCH] always call autoNext, even if not used --- src/renderer/features/player/components/playerbar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/features/player/components/playerbar.tsx b/src/renderer/features/player/components/playerbar.tsx index 43e3097bc..8644df05e 100644 --- a/src/renderer/features/player/components/playerbar.tsx +++ b/src/renderer/features/player/components/playerbar.tsx @@ -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,