bnstooltips 1.7.1 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.es.js CHANGED
@@ -5870,8 +5870,11 @@ function ItemImproveTooltip(_a) {
5870
5870
  costGroup.texts.push(React.createElement("div", { className: "TooltipBase_flex ItemImproveTooltip_moneyContainer" },
5871
5871
  React.createElement("span", { className: "TooltipBase_grade-8" }, "This option has a chance to fail!")));
5872
5872
  }
5873
- if (upgradeOption.mainItemCost != null)
5874
- costGroup.texts.push(React.createElement(ItemIconNameDiv, { showUpgrade: false, client: client, region: region, item: upgradeOption.mainItemCost, interactive: true }));
5873
+ if (upgradeOption.mainItemCost != null) {
5874
+ var mainItems = [];
5875
+ mainItems.push(upgradeOption.mainItemCost);
5876
+ costGroup.texts.push(React.createElement(DecomposeResults, { client: client, region: region, showUpgrade: false, items: mainItems }));
5877
+ }
5875
5878
  if (upgradeOption.subItemCost != null && upgradeOption.subItemCost.length > 0) {
5876
5879
  costGroup.texts.push(React.createElement(DecomposeResults, { client: client, region: region, showUpgrade: false, items: upgradeOption.subItemCost }));
5877
5880
  }