diff --git a/src/js/Search.jsx b/src/js/Search.jsx index 844806c..c9a2179 100644 --- a/src/js/Search.jsx +++ b/src/js/Search.jsx @@ -70,16 +70,14 @@ class Search extends React.Component { items: clonedItems, }); - //Add horizontalGrid BPM image for Non-Steam Games - if (game.appidold && location.state.assetType == 'horizontalGrid') { - Steam.addAsset(location.state.assetType, game.appidold, item.url); - } - const downloadPromises = []; downloadPromises.push(Steam.addAsset(location.state.assetType, game.appid, item.url)); - // Old app id is for Big Picture Mode - downloadPromises.push(Steam.addAsset(location.state.assetType, game.appidOld, item.url)); + + // Add horizontalGrid BPM image for Non-Steam Games + if (game.appidold && location.state.assetType == 'horizontalGrid') { + downloadPromises.push(Steam.addAsset(location.state.assetType, game.appidold, item.url)); + } Promise.all(downloadPromises).then(() => { clonedItems[itemIndex].downloading = false;