Fix Discord status with no Artists (#359)

This commit is contained in:
Samuli Piipponen
2023-11-12 13:40:28 +02:00
committed by GitHub
parent 11af31c539
commit f24cf5a928
@@ -40,7 +40,7 @@ export const useDiscordRpc = () => {
largeImageText: currentSong?.album || 'Unknown album', largeImageText: currentSong?.album || 'Unknown album',
smallImageKey: undefined, smallImageKey: undefined,
smallImageText: currentStatus, smallImageText: currentStatus,
state: artists && `By ${artists}`, state: artists && `By ${artists}` || "Unknown artist",
}; };
if (currentStatus === PlayerStatus.PLAYING) { if (currentStatus === PlayerStatus.PLAYING) {