From 9942c56846fb62cd1b9b3d97d6257573bcd3d8b3 Mon Sep 17 00:00:00 2001 From: tiendn Date: Tue, 2 Jul 2024 11:20:26 +0700 Subject: [PATCH] fix: error query with non-evm chainId when search --- src/components/search/SearchFilterBar.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/search/SearchFilterBar.tsx b/src/components/search/SearchFilterBar.tsx index c6ff4e5..d314ca8 100644 --- a/src/components/search/SearchFilterBar.tsx +++ b/src/components/search/SearchFilterBar.tsx @@ -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 @@ -316,4 +317,4 @@ function DatetimeSelector({ modalClasses="w-60 -right-8" /> ); -} +} \ No newline at end of file