From 87ca13518b32b52bea3d0f65da251f5e81d4bc8e Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 18 Jul 2024 01:25:42 -0400 Subject: [PATCH] Fix ShowBadgesInChat --- src/equicordplugins/showBadgesInChat/index.tsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/equicordplugins/showBadgesInChat/index.tsx b/src/equicordplugins/showBadgesInChat/index.tsx index 58875ddd..d74d44dc 100644 --- a/src/equicordplugins/showBadgesInChat/index.tsx +++ b/src/equicordplugins/showBadgesInChat/index.tsx @@ -126,21 +126,13 @@ function CheckBadge({ badge, author }: { badge: string; author: User; }): JSX.El ) : null; case "DiscordNitro": - let premiumType: Number | undefined; - premiumType = author?.premiumType; - // @ts-ignore - if (author?._realPremiumType) { - // @ts-ignore - premiumType = author?._realPremiumType; - } - // @ts-ignore - return premiumType > 0 ? ( + return (author?.premiumType ?? 0) > 0 ? (