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) => (