address selector: use cached reverses

This commit is contained in:
Jannis R
2017-01-05 17:19:26 +01:00
parent b38aa8d01f
commit 6f492a4945
2 changed files with 29 additions and 3 deletions

View File

@@ -56,6 +56,7 @@ class AddressSelect extends Component {
contacts: PropTypes.object,
contracts: PropTypes.object,
tokens: PropTypes.object,
reverse: PropTypes.object,
// Optional props
allowCopy: PropTypes.bool,
@@ -584,10 +585,12 @@ class AddressSelect extends Component {
function mapStateToProps (state) {
const { accountsInfo } = state.personal;
const { balances } = state.balances;
const { reverse } = state.registry;
return {
accountsInfo,
balances
balances,
reverse
};
}