Skip to content

Commit

Permalink
fix: error query with non-evm chainId when search
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTylerD26 committed Jul 2, 2024
1 parent ad05a0b commit 9942c56
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/search/SearchFilterBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ function ChainMultiSelector({
);
const mainnets = coreEvmChains.filter((c) => !c.isTestnet);
const testnets = coreEvmChains.filter((c) => !!c.isTestnet);
return { chains, mainnets, testnets };
// Return only evnChains because of graphql only accept query non-evm chains (with bigint type not string)
return { chains: coreEvmChains, mainnets, testnets };
}, [multiProvider]);

// Need local state as buffer before user hits apply
Expand Down Expand Up @@ -316,4 +317,4 @@ function DatetimeSelector({
modalClasses="w-60 -right-8"
/>
);
}
}

0 comments on commit 9942c56

Please sign in to comment.