Skip to content

Commit

Permalink
Merge pull request #311 from cosmos/jordan/290-sign-in-bug
Browse files Browse the repository at this point in the history
set state.address from key instead of state.accounts
  • Loading branch information
faboweb authored Jan 3, 2018
2 parents 3316be2 + bdac190 commit ceb1909
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/renderer/vuex/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand Down

0 comments on commit ceb1909

Please sign in to comment.