Skip to content

Commit

Permalink
♻️ Change integer to more descreptive variablein delegate Statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeltomasik committed Jun 27, 2018
1 parent 7536d8a commit 0131557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/transactions/delegateStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ class DelegateStatistics extends React.Component {
const { delegate } = this.props;

let status = '';
const numberOfRewardedDelegates = 101;
if (delegate && delegate.rank) {
status = delegate.rank <= 101 ? this.props.t('Active') : this.props.t('Standby');
status = delegate.rank <= numberOfRewardedDelegates ? this.props.t('Active') : this.props.t('Standby');
}

const missed = this.props.t('missed');
Expand Down

0 comments on commit 0131557

Please sign in to comment.