mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-18 10:57:04 -04:00
This commit is contained in:
parent
8d5d7ba8a0
commit
3a38192395
1 changed files with 4 additions and 1 deletions
|
@ -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 (
|
||||
<span style={{ order: settings.store.EquicordDonorPosition }}>
|
||||
{badges.getEquicordDonorBadges(author.id)?.map((badge: any) => (
|
||||
{equicordDonorBadges.map((badge: any) => (
|
||||
<RoleIconComponent
|
||||
key={author.id}
|
||||
className={roleIconClassName}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue