Skip to content

Commit bd334f1

Browse files
authored
Merge pull request #216 from blocknative/fix/accounts-balance
Fix: accounts balance re-render. Closes #215
2 parents d3fed9f + eaf8520 commit bd334f1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/modules/check/accounts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ type AccountsAndBalances = Array<{ balance: string; address: string }>
55
function accountSelect(): WalletCheckModule | never {
66
let completed: boolean = false
77
let loadingAccounts: boolean = false
8-
let accountsAndBalances: AccountsAndBalances
8+
let accountsAndBalances: AccountsAndBalances = []
99

1010
return async (stateAndHelpers: StateAndHelpers) => {
1111
const { wallet, BigNumber, address, balance } = stateAndHelpers
1212
const { provider, type } = wallet
1313

1414
if (type === 'hardware' && !completed) {
15-
if (!accountsAndBalances && !loadingAccounts) {
15+
if (accountsAndBalances.length <= 1 && !loadingAccounts) {
1616
accountsAndBalances = [{ address, balance }]
1717
}
1818

src/modules/select/wallets/ledger.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ async function ledgerProvider(options: {
158158
paths.push(ledgerLive, legacy)
159159
}
160160
} else {
161-
paths.push(`${basePath}/0'/0`, `${basePath}/0'/0/0`)
161+
paths.push(`${basePath}/0'/0`)
162162
}
163163

164164
let transport

0 commit comments

Comments
 (0)