Skip to content

Commit

Permalink
Update build.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
fergalwalsh authored Feb 6, 2025
1 parent 8f522b4 commit b32ff1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ try {

const assetData = await Promise.all(assetIDs.map(getAssetInformationById));

assetData.forEach((asset) => {
assetData.filter((asset) => asset.id).forEach((asset) => {
ASSET_MAP.set(asset.id, asset);
ASSET_ICON_MAP.set(asset.id, asset.logo.png);
});
Expand Down Expand Up @@ -213,6 +213,6 @@ async function getAssetInformationById(id) {
};
} catch (error) {
console.error(error);
throw new Error(`Failed to fetch information for asset #${id}`);
return {};
}
}

0 comments on commit b32ff1b

Please sign in to comment.