Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: ledger wallet first otherwise check local db (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarnsley authored and faustbrian committed Dec 5, 2018
1 parent 95b5af8 commit 5ea7f14
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/renderer/mixins/wallet.js
Expand Up @@ -10,16 +10,14 @@ export default {
}

const address = params.address
let wallet = this.$store.getters['wallet/byAddress'](address)

if (this.$store.getters['ledger/isConnected'] && !wallet) {
if (this.$store.getters['ledger/isConnected']) {
const ledgerWallet = this.$store.getters['ledger/wallet'](address)
if (ledgerWallet) {
wallet = ledgerWallet
return ledgerWallet
}
}

return wallet
return this.$store.getters['wallet/byAddress'](address)
}
},

Expand Down

0 comments on commit 5ea7f14

Please sign in to comment.