about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/account/components/action_bar.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-12-17 21:23:44 +0100
committerThibG <thib@sitedethib.com>2018-12-20 14:51:12 +0100
commit1b18eb49e378e31e805e84563eb5d3c88ad3cf7e (patch)
treec3e052f5bdbbb33ee4da261ff056b62bc441363c /app/javascript/flavours/glitch/features/account/components/action_bar.js
parenta1c56fcef124b08fc2676d38fd79ed72d660d865 (diff)
Hide negative follower counts from glitch flavour
Diffstat (limited to 'app/javascript/flavours/glitch/features/account/components/action_bar.js')
-rw-r--r--app/javascript/flavours/glitch/features/account/components/action_bar.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/account/components/action_bar.js b/app/javascript/flavours/glitch/features/account/components/action_bar.js
index ffa5b7e5e..fdacb7298 100644
--- a/app/javascript/flavours/glitch/features/account/components/action_bar.js
+++ b/app/javascript/flavours/glitch/features/account/components/action_bar.js
@@ -164,7 +164,7 @@ export default class ActionBar extends React.PureComponent {
 
             <NavLink exact activeClassName='active' className='account__action-bar__tab' to={`/accounts/${account.get('id')}/followers`}>
               <FormattedMessage id='account.followers' defaultMessage='Followers' />
-              <strong><FormattedNumber value={account.get('followers_count')} /></strong>
+              <strong>{ account.get('followers_count') < 0 ? '-' : <FormattedNumber value={account.get('followers_count')} /> }</strong>
             </NavLink>
           </div>
         </div>