Skip to content

Commit

Permalink
fix(GuildCard): properly pluralize text on the role badge
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Nov 26, 2024
1 parent 963138e commit 201e0a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/(dashboard)/explorer/components/GuildCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const GuildCard: FunctionComponent<{ guild: Guild }> = ({ guild }) => {
</span>
</Badge>

<Badge>{`${guild.roleCount} roles`}</Badge>
<Badge>{`${guild.roleCount} role${guild.roleCount > 1 ? "s" : ""}`}</Badge>
</div>
</Card>
</Link>
Expand Down

0 comments on commit 201e0a1

Please sign in to comment.