fix: error query with non-evm chainId when search (#92)

## Description
Add wrong query chainId when search 
Issue: https://github.com/hyperlane-xyz/hyperlane-explorer/issues/91

## Solution
Return only evm chain with bigint type not string
pull/93/head
J M Rossy 4 months ago committed by GitHub
commit 72cd5e2f2c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      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"
/>
);
}
}
Loading…
Cancel
Save