From: Chris Duncan Date: Wed, 17 Sep 2025 15:07:39 +0000 (-0700) Subject: Fix map iterator. X-Git-Tag: v0.10.5~12^2~45 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=f414f27b3e69834241d3a2beb738583677ae5bbc;p=libnemo.git Fix map iterator. --- diff --git a/src/lib/wallet/unopened.ts b/src/lib/wallet/unopened.ts index 6ffaa3b..c2cecdc 100644 --- a/src/lib/wallet/unopened.ts +++ b/src/lib/wallet/unopened.ts @@ -30,9 +30,10 @@ export async function _unopened (wallet: Wallet, rpc: unknown, batchSize: unknow for (const a of addresses) { const value = errors[a] if (value === 'Account not found') { - const account = accounts.values().find(({ address }) => a === address) - if (account !== undefined) { - return account + for (const account of accounts.values()) { + if (a === account.address) { + return account + } } } }