diff --git a/src/layouts/components/Navbar.vue b/src/layouts/components/Navbar.vue index a37490e8..e4e3cc22 100644 --- a/src/layouts/components/Navbar.vue +++ b/src/layouts/components/Navbar.vue @@ -239,8 +239,8 @@ export default { let accounts = getLocalAccounts() || {} accounts = Object.entries(accounts).map(v => ({ wallet: v[0], address: v[1].address.find(x => x.chain === this.selected_chain.chain_name) })) - if (!this.$store.state.chains.defaultWallet && this.accounts.length > 0) { - this.updateDefaultWallet(this.accounts[0].wallet) + if (!this.$store.state.chains.defaultWallet && accounts.length > 0) { + this.updateDefaultWallet(accounts[0].wallet) } return accounts },