Fix follows/follower number

This commit is contained in:
Bojan Mojsilovic 2023-09-27 14:47:05 +02:00
parent c632027370
commit b777c791c8

View File

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