Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Dec 3, 2024
1 parent 7351dfd commit a2d1e37
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/external-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -330,7 +330,7 @@ export const _getCurveLiteNetworks = memoize(
isTestnet: !isMainnet,
};
})
.filter(({ name }) => name);
.filter(Boolean);
},
{
promise: true,
Expand Down

0 comments on commit a2d1e37

Please sign in to comment.