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) {
|
switch (badge) {
|
||||||
case "EquicordDonor":
|
case "EquicordDonor":
|
||||||
|
const equicordDonorBadges = badges.getEquicordDonorBadges(author.id)?.slice(0, 12);
|
||||||
|
if (!equicordDonorBadges || equicordDonorBadges.length === 0) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<span style={{ order: settings.store.EquicordDonorPosition }}>
|
<span style={{ order: settings.store.EquicordDonorPosition }}>
|
||||||
{badges.getEquicordDonorBadges(author.id)?.map((badge: any) => (
|
{equicordDonorBadges.map((badge: any) => (
|
||||||
<RoleIconComponent
|
<RoleIconComponent
|
||||||
key={author.id}
|
key={author.id}
|
||||||
className={roleIconClassName}
|
className={roleIconClassName}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue