From 3dd7caa4832d9e53ee2526ff73e596cd73483018 Mon Sep 17 00:00:00 2001 From: Samuli Piipponen Date: Sun, 5 Nov 2023 00:03:19 +0200 Subject: [PATCH] Fix Discord status with no Artists --- src/renderer/features/discord-rpc/use-discord-rpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/features/discord-rpc/use-discord-rpc.ts b/src/renderer/features/discord-rpc/use-discord-rpc.ts index 19f54b454..85aec1f58 100644 --- a/src/renderer/features/discord-rpc/use-discord-rpc.ts +++ b/src/renderer/features/discord-rpc/use-discord-rpc.ts @@ -40,7 +40,7 @@ export const useDiscordRpc = () => { largeImageText: currentSong?.album || 'Unknown album', smallImageKey: undefined, smallImageText: currentStatus, - state: artists && `By ${artists}`, + state: artists && `By ${artists}` || "Unknown artist", }; if (currentStatus === PlayerStatus.PLAYING) {