From 8f34ec0491df2e6362d4ae013a7222d768eaa376 Mon Sep 17 00:00:00 2001 From: cnrad <83192247+cnrad@users.noreply.github.com> Date: Sun, 17 Oct 2021 23:06:25 -0400 Subject: [PATCH] fix: remove clipped music presence container when other activity present --- src/renderCard.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/renderCard.tsx b/src/renderCard.tsx index 52527ce..cefbdaf 100644 --- a/src/renderCard.tsx +++ b/src/renderCard.tsx @@ -203,9 +203,12 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise< } - ${hideBadges == "true" ? '' : flags - .map( - v => ` + ${ + hideBadges == "true" + ? "" + : flags + .map( + v => ` ` - ) - .join("")} + ) + .join("") + } ${ userStatus.length > 0 && hideStatus !== "true" @@ -386,6 +390,7 @@ const renderCard = async (body: LanyardTypes.Root, params: Parameters): Promise< ${ body.data.listening_to_spotify === true && + !activity && body.data.activities[Object.keys(body.data.activities).length - 1].type === 2 ? `