From cbf8f82035882387622e4ae78c588d5d1eb3383f Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 17 Sep 2020 23:35:08 -0500 Subject: [PATCH] Fix 0 bug for user panel, fixes #415 !235 --- app/soapbox/features/ui/components/user_panel.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/soapbox/features/ui/components/user_panel.js b/app/soapbox/features/ui/components/user_panel.js index 411b9b70b..82415cd9d 100644 --- a/app/soapbox/features/ui/components/user_panel.js +++ b/app/soapbox/features/ui/components/user_panel.js @@ -56,21 +56,21 @@ class UserPanel extends ImmutablePureComponent {
- {account.get('statuses_count') &&
+ {account.get('statuses_count') >= 0 &&
{shortNumberFormat(account.get('statuses_count'))}
} - {account.get('followers_count') &&
+ {account.get('followers_count') >= 0 &&
{shortNumberFormat(account.get('followers_count'))}
} - {account.get('following_count') &&
+ {account.get('following_count') >= 0 &&
{shortNumberFormat(account.get('following_count'))}