Fix 0 bug for user panel, fixes #415 !235

better-alerts
Alex Gleason 2020-09-17 23:35:08 -05:00
rodzic c65cae8570
commit cbf8f82035
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -56,21 +56,21 @@ class UserPanel extends ImmutablePureComponent {
<div className='user-panel__stats-block'>
{account.get('statuses_count') && <div className='user-panel-stats-item'>
{account.get('statuses_count') >= 0 && <div className='user-panel-stats-item'>
<Link to={`/@${account.get('acct')}`} title={intl.formatNumber(account.get('statuses_count'))}>
<strong className='user-panel-stats-item__value'>{shortNumberFormat(account.get('statuses_count'))}</strong>
<span className='user-panel-stats-item__label'><FormattedMessage className='user-panel-stats-item__label' id='account.posts' defaultMessage='Posts' /></span>
</Link>
</div>}
{account.get('followers_count') && <div className='user-panel-stats-item'>
{account.get('followers_count') >= 0 && <div className='user-panel-stats-item'>
<Link to={`/@${account.get('acct')}/followers`} title={intl.formatNumber(account.get('followers_count'))}>
<strong className='user-panel-stats-item__value'>{shortNumberFormat(account.get('followers_count'))}</strong>
<span className='user-panel-stats-item__label'><FormattedMessage id='account.followers' defaultMessage='Followers' /></span>
</Link>
</div>}
{account.get('following_count') && <div className='user-panel-stats-item'>
{account.get('following_count') >= 0 && <div className='user-panel-stats-item'>
<Link to={`/@${account.get('acct')}/following`} title={intl.formatNumber(account.get('following_count'))}>
<strong className='user-panel-stats-item__value'>{shortNumberFormat(account.get('following_count'))}</strong>
<span className='user-panel-stats-item__label'><FormattedMessage className='user-panel-stats-item__label' id='account.follows' defaultMessage='Follows' /></span>