Skip to content

Commit

Permalink
Merge pull request #1363 from LiskHQ/1336-show-delegate-statistics
Browse files Browse the repository at this point in the history
Show delegate statistics - Closes #1336
  • Loading branch information
bmaggi-lisk committed Oct 17, 2018
2 parents de1eb7d + eaf4b86 commit cdaf6e8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/transactions/walletTransactions/index.js
Expand Up @@ -13,10 +13,17 @@ const mapStateToProps = state => ({
account: state.account,
transaction: state.transaction,
transactions: [...state.transactions.pending, ...state.transactions.confirmed],
votes: state.account.votes,
voters: state.account.voters,
votes: state.account.votes ?
state.account.votes :
state.search.votes[state.account.addres],
voters: state.account.voters ?
state.account.voters :
state.search.voters[state.account.address],
count: state.transactions.count,
delegate: state.account && (state.account.delegate || null),
// Pick delegate from source
delegate: (state.account && state.account.delegate) ?
state.account && (state.account.delegate || null) :
state.search.delegates[state.account.address],
activeFilter: state.filters.wallet || txFilters.all,
loading: state.loading,
});
Expand Down

0 comments on commit cdaf6e8

Please sign in to comment.