From 91431856e59098dff2f7cb17b97936e181e0fdf0 Mon Sep 17 00:00:00 2001 From: Tim Olson <> Date: Sat, 11 Nov 2023 00:01:27 -0400 Subject: [PATCH] changeAccounts fix --- src/blockchain/wallet.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blockchain/wallet.js b/src/blockchain/wallet.js index e6d500e..660af17 100644 --- a/src/blockchain/wallet.js +++ b/src/blockchain/wallet.js @@ -27,12 +27,13 @@ function changeAccounts(accounts) { store.vaultBalances = {} } else { + const addr = accounts[0].address ? accounts[0].address : accounts[0] const store = useStore() store.account = accounts[0] - console.log('set store.account to', accounts[0], store.account) + console.log('set store.account to', addr, store.account) discoverVaults() flushTransactions() - socket.emit('address', store.chainId, accounts[0]) + socket.emit('address', store.chainId, addr) } console.log('changeAccounts ended') }