From ef270ed0df5a247b77853610f2f108206828a67a Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sat, 31 Aug 2019 18:21:02 +0200 Subject: [PATCH] Properly hide follower count in profile directory --- .../glitch/features/directory/components/account_card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/directory/components/account_card.js b/app/javascript/flavours/glitch/features/directory/components/account_card.js index 7bab0db0ba2..5ba263825ef 100644 --- a/app/javascript/flavours/glitch/features/directory/components/account_card.js +++ b/app/javascript/flavours/glitch/features/directory/components/account_card.js @@ -139,7 +139,7 @@ class AccountCard extends ImmutablePureComponent {
{shortNumberFormat(account.get('statuses_count'))}
-
{shortNumberFormat(account.get('followers_count'))}
+
{account.get('followers_count') < 0 ? '-' : shortNumberFormat(account.get('followers_count'))}
{account.get('last_status_at') === null ? : }