From bdac19016989d5048fc22f712c55af1b881e0504 Mon Sep 17 00:00:00 2001 From: Jordan Bibla Date: Tue, 2 Jan 2018 20:50:26 -0500 Subject: [PATCH] set state.address from key instead of state.accounts closes #290 --- app/src/renderer/vuex/modules/user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/renderer/vuex/modules/user.js b/app/src/renderer/vuex/modules/user.js index f91621680e..ddb147b553 100644 --- a/app/src/renderer/vuex/modules/user.js +++ b/app/src/renderer/vuex/modules/user.js @@ -88,10 +88,11 @@ export default ({ commit, node }) => { async signIn ({ state, dispatch }, { password, account }) { state.password = password state.account = account - state.address = state.accounts.find(_account => _account.name === account).address state.signedIn = true let key = await node.getKey(account) + state.address = key.address + dispatch('initializeWallet', key) }, signOut ({ state, commit, dispatch }) {