Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

refactor(ui): modify the users page display field

robin022f5cba27a6
diff --git a/ui/src/pages/Users/index.tsx b/ui/src/pages/Users/index.tsx
index 9362ad51..1436cb82 100644
--- a/ui/src/pages/Users/index.tsx
+++ b/ui/src/pages/Users/index.tsx
@@ -56,7 +56,9 @@ const Users = () => {
{user.display_name}
</Link>
<div className="text-secondary fs-14">
- {user.rank} {t('reputation')}
+ {key === 'users_with_the_most_vote'
+ ? `${user.vote_count} ${t('votes')}`
+ : `${user.rank} ${t('reputation')}`}
</div>
</div>
</div>