Skip to content

Commit d85df8b

Browse files
committed
[DASH-635] Fix useActiveWalletChain not returning custom chain (#5752)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR adds functionality to handle custom chains by mapping them to a new format and storing them in a separate array. ### Detailed summary - Added a line to push mapped custom chains to the `allChainsV5` array using `mapV4ChainToV5Chain(c)`. - Included an ESLint directive to disable the `no-restricted-syntax` rule for the new line. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 2110792 commit d85df8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/dashboard/src/hooks/chains/allChains.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ function createAllChainsStore() {
8686
for (const c of chainOverrides) {
8787
if (c.isCustom) {
8888
allChains.push(c);
89+
// eslint-disable-next-line no-restricted-syntax
90+
allChainsV5.push(mapV4ChainToV5Chain(c));
8991
idToChain.set(c.chainId, c);
9092
nameToChain.set(c.name, c);
9193
slugToChain.set(c.slug, c);

0 commit comments

Comments
 (0)