mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-29 00:10:50 +00:00
Fix follows/follower number
This commit is contained in:
parent
c632027370
commit
b777c791c8
@ -124,7 +124,7 @@ const ProfileTabs: Component<{
|
||||
<Tabs.Trigger class={styles.profileTab} value="follows">
|
||||
<div class={styles.stat}>
|
||||
<div class={styles.statNumber}>
|
||||
{humanizeNumber(profile?.contacts.length || profile?.userStats?.follows_count || 0)}
|
||||
{humanizeNumber(profile?.userStats?.follows_count || 0)}
|
||||
</div>
|
||||
<div class={styles.statName}>
|
||||
{intl.formatMessage(t.stats.follow)}
|
||||
@ -135,7 +135,7 @@ const ProfileTabs: Component<{
|
||||
<Tabs.Trigger class={styles.profileTab} value="followers">
|
||||
<div class={styles.stat}>
|
||||
<div class={styles.statNumber}>
|
||||
{humanizeNumber(profile?.followers.length || profile?.userStats?.followers_count || 0)}
|
||||
{humanizeNumber(profile?.userStats?.followers_count || 0)}
|
||||
</div>
|
||||
<div class={styles.statName}>
|
||||
{intl.formatMessage(t.stats.followers)}
|
||||
|
Loading…
Reference in New Issue
Block a user