diff --git a/package.json b/package.json index 8460a93e..a69d5d5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@curvefi/api", - "version": "2.65.18", + "version": "2.65.17", "description": "JavaScript library for curve.fi", "main": "lib/index.js", "author": "Macket", 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,