always call autoNext, even if not used (#241)

This commit is contained in:
Kendall Garner 2023-09-10 22:08:48 +00:00 committed by GitHub
parent c90a56811d
commit 1badecc20a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,