]> git.codecow.com Git - libnemo.git/commitdiff
Fix map iterator.
authorChris Duncan <chris@zoso.dev>
Wed, 17 Sep 2025 15:07:39 +0000 (08:07 -0700)
committerChris Duncan <chris@zoso.dev>
Wed, 17 Sep 2025 15:07:39 +0000 (08:07 -0700)
src/lib/wallet/unopened.ts

index 6ffaa3be825b4e0b585686421bc30f14c571a788..c2cecdccfcff481df76eb25b8a1ad57f7312426b 100644 (file)
@@ -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
+                                       }
                                }
                        }
                }