From 3a381923958057b151ba0b43842df46f697b2117 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 5 Apr 2025 09:11:49 -0400 Subject: [PATCH] Set ShowBadgesInChat Limit --- src/equicordplugins/showBadgesInChat/index.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/equicordplugins/showBadgesInChat/index.tsx b/src/equicordplugins/showBadgesInChat/index.tsx index 2d5de3d6..ba9d1582 100644 --- a/src/equicordplugins/showBadgesInChat/index.tsx +++ b/src/equicordplugins/showBadgesInChat/index.tsx @@ -38,9 +38,12 @@ function CheckBadge({ badge, author }: { badge: string; author: User; }): JSX.El switch (badge) { case "EquicordDonor": + const equicordDonorBadges = badges.getEquicordDonorBadges(author.id)?.slice(0, 12); + if (!equicordDonorBadges || equicordDonorBadges.length === 0) return null; + return ( - {badges.getEquicordDonorBadges(author.id)?.map((badge: any) => ( + {equicordDonorBadges.map((badge: any) => (