Skip to content

Commit b32ff1b

Browse files
authored
Update build.mjs
1 parent 8f522b4 commit b32ff1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ try {
8484

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

87-
assetData.forEach((asset) => {
87+
assetData.filter((asset) => asset.id).forEach((asset) => {
8888
ASSET_MAP.set(asset.id, asset);
8989
ASSET_ICON_MAP.set(asset.id, asset.logo.png);
9090
});
@@ -213,6 +213,6 @@ async function getAssetInformationById(id) {
213213
};
214214
} catch (error) {
215215
console.error(error);
216-
throw new Error(`Failed to fetch information for asset #${id}`);
216+
return {};
217217
}
218218
}

0 commit comments

Comments
 (0)