From ab73035e86617df1c7805e408ee609fd75e266af Mon Sep 17 00:00:00 2001 From: vascYT Date: Sun, 29 Oct 2023 19:06:53 +0100 Subject: [PATCH] fix: null spotify link when track id is null --- src/components/DiscordActivity.tsx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/components/DiscordActivity.tsx b/src/components/DiscordActivity.tsx index bb12ecc..d543ac0 100644 --- a/src/components/DiscordActivity.tsx +++ b/src/components/DiscordActivity.tsx @@ -21,14 +21,18 @@ export default function DiscordActivity() { {activity.listening_to_spotify ? ( <> Listening to ` - - {activity.spotify?.song} - + {activity.spotify?.track_id != null ? ( + + {activity.spotify?.song} + + ) : ( + activity.spotify?.song + )} ` ) : (