fix: playNext and playPrevious logic

This commit is contained in:
Prayag Prajapati committed 2024-07-19 19:42:55 +05:30
1 parent d077860fbc
commit 70c6dd927b
5 files changed
+93 -69

No files matched your search

@@ -18,7 +18,7 @@ const PlayPreviousButton = () => {
});
const handlePlayNext = useMutation({
mutationKey: ["playPreviousButton"],
mutationFn: () => playItemFromQueue("previous", user.data?.Id),
mutationFn: () => playItemFromQueue("previous", user.data?.Id, api),
onError: (error) => [console.error(error)],
});
const [queueItems, currentItemIndex] = useQueue((state) => [