Fix null imageUrl on credential

This commit is contained in:
jeffvli
2022-11-04 19:18:35 -07:00
parent fd53f90db2
commit ae53b17214
2 changed files with 7 additions and 6 deletions
@@ -50,9 +50,10 @@ export const usePlayQueueHandler = () => {
songs = songs.map((song) => {
return {
...song,
imageUrl: isImageTokenRequired
? `${song.imageUrl}${serverToken}`
: song.imageUrl,
imageUrl:
song.imageUrl && isImageTokenRequired
? `${song.imageUrl}${serverToken}`
: song.imageUrl,
streamUrl: `${song.streamUrl}${serverToken}`,
};
});