From 05e9de9fd068f1ba647183325f9d2852ff868c8f Mon Sep 17 00:00:00 2001 From: Vit Stanislav Date: Mon, 6 Nov 2017 12:28:20 +0100 Subject: [PATCH] Fix broken "save account" e2e scenario - Closes #957 --- src/components/login/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/login/login.js b/src/components/login/login.js index 7cefc0f40..afd76fe8d 100644 --- a/src/components/login/login.js +++ b/src/components/login/login.js @@ -129,7 +129,7 @@ class Login extends React.Component { const { savedAccounts } = this.props; if (savedAccounts && savedAccounts.length > 0 && !this.props.account.afterLogout) { this.account = savedAccounts[0]; - const network = Object.assign({}, getNetwork(this.state.network)); + const network = Object.assign({}, getNetwork(this.account.network)); if (this.account.network === networks.customNode.code) { network.address = this.account.address; }