Don't send invalid scrobbles when clearing the player's queue

This commit is contained in:
Deluan
2021-07-26 16:50:45 -04:00
parent fb4eefced5
commit e68b22ea5d
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ const Player = () => {
}
if (!scrobbled) {
subsonic.scrobble(info.trackId, true, startTime)
info.trackId && subsonic.scrobble(info.trackId, startTime)
setScrobbled(true)
}
},