Browse Source

Fix dumbest recursion ever

master
meriadec 7 years ago
parent
commit
b492e86526
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 7
      src/internals/usb/wallet/scanAccountsOnDevice.js

7
src/internals/usb/wallet/scanAccountsOnDevice.js

@ -63,7 +63,12 @@ async function scanNextAccount({ wallet, hwApp, accountIndex = 0, accountsCount,
return accounts
}
return scanNextAccount(wallet, hwApp, accountIndex + 1, accounts)
return scanNextAccount({
wallet,
hwApp,
accountIndex: accountIndex + 1,
accounts,
})
}
export default async function scanAccountsOnDevice(props: Props): Account[] {

Loading…
Cancel
Save