Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Cleanup certifications #7454

Merged
merged 7 commits into from
Jan 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions js-old/src/ui/Certifications/certifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ function mapStateToProps (_, initProps) {

return (state) => {
const certifications = state.certifications[address] || [];
const dappsUrl = state.api.dappsUrl;

return { certifications, dappsUrl };
return {
certifications
};
};
}

Expand Down
7 changes: 4 additions & 3 deletions js-old/src/views/Accounts/List/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -83,6 +82,7 @@ class List extends Component {
account={ account }
disabled={ isDisabled }
handleAddSearchToken={ handleAddSearchToken }
key={ account.address }
link={ link }
owners={ owners }
showCertifications
Expand Down Expand Up @@ -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(
Expand Down