refactor(ui): modify the users page display field

This commit is contained in:
robin 2022-12-14 11:01:28 +08:00
parent 6302165bc0
commit 022f5cba27
1 changed files with 3 additions and 1 deletions

View File

@ -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>