Skip to content

Commit b7b180a

Browse files
committed
fix: display challenges when the challenges are greater than 1
1 parent 7268594 commit b7b180a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/cards/community/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default function CommunityCard({ showRewards = true, community }: Communi
8484
<div className="flex flex-col space-y-0">
8585
<div className="mt-4 font-medium text-theme-accent">{t("communities.card.earn")}</div>
8686
<div className="mt-4 font-light text-theme-accent">
87-
{t(community.challenges !== 1 ? "communities.card.challenges" : "communities.card.challenge", { count: community.challenges })}
87+
{t(community.challenges > 1 ? "communities.card.challenges" : "communities.card.challenge", { count: community.challenges })}
8888
</div>
8989
</div>
9090
<div className="mt-4 align-middle">

0 commit comments

Comments
 (0)