From 71da3af1a2e6ff04142d4b403012fd11d83d4965 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Fri, 5 Jan 2018 13:26:43 +0100 Subject: [PATCH] Cleanup certifications (#7454) * Cleanup certifications * Add key for accounts --- js-old/src/ui/Certifications/certifications.js | 5 +++-- js-old/src/views/Accounts/List/list.js | 7 ++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/js-old/src/ui/Certifications/certifications.js b/js-old/src/ui/Certifications/certifications.js index 26ff3006d..8a5c1f7d3 100644 --- a/js-old/src/ui/Certifications/certifications.js +++ b/js-old/src/ui/Certifications/certifications.js @@ -97,9 +97,10 @@ function mapStateToProps (_, initProps) { return (state) => { const certifications = state.certifications[address] || []; - const dappsUrl = state.api.dappsUrl; - return { certifications, dappsUrl }; + return { + certifications + }; }; } diff --git a/js-old/src/views/Accounts/List/list.js b/js-old/src/views/Accounts/List/list.js index 7ff04ab30..4de449239 100644 --- a/js-old/src/views/Accounts/List/list.js +++ b/js-old/src/views/Accounts/List/list.js @@ -27,7 +27,6 @@ import styles from './list.css'; class List extends Component { static propTypes = { balances: PropTypes.object.isRequired, - certifications: PropTypes.object.isRequired, accounts: PropTypes.object, disabled: PropTypes.object, empty: PropTypes.bool, @@ -83,6 +82,7 @@ class List extends Component { account={ account } disabled={ isDisabled } handleAddSearchToken={ handleAddSearchToken } + key={ account.address } link={ link } owners={ owners } showCertifications @@ -246,9 +246,10 @@ class List extends Component { function mapStateToProps (state, props) { const addresses = Object.keys(props.accounts); const balances = pick(state.balances, addresses); - const { certifications } = state; - return { balances, certifications }; + return { + balances + }; } export default connect(