fix removing tracks from queue

This commit is contained in:
geoffrey45
2022-10-08 19:32:29 +03:00
committed by Mungai Njoroge
parent bb66ba70b3
commit a496d68439
9 changed files with 71 additions and 47 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ export default function createTrackProps(track: Track) {
return {
track,
index: track.index + 1,
isCurrent: queue().currenttrack?.hash === track.hash,
isCurrent: queue().currentid === track.trackid,
isCurrentPlaying:
queue().currenttrack?.hash === track.hash && queue().playing,
queue().currentid === track.trackid && queue().playing,
};
}