File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11import { Store } from 'store-unit' ;
22import type { ChainId } from '../ethereum/transactions/ChainId' ;
33import type { EthereumChainConfig } from '../ethereum/chains/types' ;
4+ import { isCustomNetworkId } from '../ethereum/chains/helpers' ;
45import { Networks } from './Networks' ;
56import { getNetworkByChainId , getNetworks } from './networks-api' ;
67import type { NetworkConfig } from './NetworkConfig' ;
@@ -77,7 +78,7 @@ export class NetworksStore extends Store<State> {
7778 const savedIds = savedChainConfigs ?. map ( ( config ) => config . id ) ;
7879 const chainsToFetch = Array . from (
7980 new Set ( [ ...( savedIds || [ ] ) , ...( chains || [ ] ) ] )
80- ) ;
81+ ) . filter ( ( id ) => ! isCustomNetworkId ( id ) ) ;
8182
8283 const [ extraNetworkConfigs , commonNetworkConfigs ] =
8384 await Promise . allSettled ( [ getNetworks ( chainsToFetch ) , getNetworks ( ) ] ) ;
You can’t perform that action at this time.
0 commit comments