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 8cfa308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
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 8cfa308

Please sign in to comment.