Skip to content

Commit

Permalink
fix: search interchain tokens query searching only first chain (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
SGiaccobasso authored Sep 20, 2024
1 parent 71d6746 commit 649ec35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-dodos-sparkle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@axelarjs/maestro": patch
---

fix search interchain tokens query issue where it was only looking at the results for the first chain searched
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ async function scanChains(
return null;
});
});

const results = await Promise.all(promises);
const validResult = results.find((result) => result !== null);
const validResult = results.find((result) => result);

return validResult || null;
}
Expand Down

0 comments on commit 649ec35

Please sign in to comment.