From ba8460c65b169e538b9be5ce6b013837d221fc05 Mon Sep 17 00:00:00 2001 From: Nicolas Gotchac Date: Mon, 21 Nov 2016 15:54:51 +0100 Subject: [PATCH] Fix summary update --- js/src/views/Accounts/accounts.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/js/src/views/Accounts/accounts.js b/js/src/views/Accounts/accounts.js index 24909703b..0075a15a2 100644 --- a/js/src/views/Accounts/accounts.js +++ b/js/src/views/Accounts/accounts.js @@ -38,7 +38,6 @@ class Accounts extends Component { } state = { - accountsNodes: null, addressBook: false, newDialog: false, sortOrder: '', @@ -47,11 +46,10 @@ class Accounts extends Component { show: false } - componentDidMount () { + componentWillMount () { window.setTimeout(() => { - const accountsNodes = this.renderAccounts(); - this.setState({ show: true, accountsNodes }); - }, 0); + this.setState({ show: true }); + }, 100); } render () { @@ -60,7 +58,7 @@ class Accounts extends Component { { this.renderNewDialog() } { this.renderActionbar() } - { this.state.show ? this.state.accountsNodes : this.renderLoading() } + { this.state.show ? this.renderAccounts() : this.renderLoading() } ); }