From a2d1e37782aec85630d748a1ddd60da37477be0f Mon Sep 17 00:00:00 2001 From: Daniel Schiavini Date: Tue, 3 Dec 2024 11:32:15 +0100 Subject: [PATCH] fix: lint --- src/external-api.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/external-api.ts b/src/external-api.ts index 0940eec3..f2e2c5ce 100644 --- a/src/external-api.ts +++ b/src/external-api.ts @@ -318,9 +318,9 @@ export const _getCurveLiteNetworks = memoize( const { platforms, platformsMetadata } = response.data.data; return Object.keys(platforms) - .map(id => { - const {explorerBaseUrl, name, rpcUrl, nativeCurrencySymbol, isMainnet, chainId} = platformsMetadata[id]; - return { + .map((id) => { + const { name, rpcUrl, nativeCurrencySymbol, explorerBaseUrl, isMainnet, chainId} = platformsMetadata[id] ?? {}; + return name && { id, name, rpcUrl, @@ -330,7 +330,7 @@ export const _getCurveLiteNetworks = memoize( isTestnet: !isMainnet, }; }) - .filter(({ name }) => name); + .filter(Boolean); }, { promise: true,