Skip to content

Commit

Permalink
[fix] Show costs of items
Browse files Browse the repository at this point in the history
The costs for crafting items wasn't displayed anymore. This fixes it.
  • Loading branch information
Borreke0 authored Nov 12, 2023
1 parent 26c15fe commit b461d48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion html/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ function generateDescription(itemData) {
case "labkey":
return `<p>Lab: ${itemData.info.lab}</p>`;
default:
return itemData.description;
let itemDescr = itemData.description;
if (itemData.info.costs != undefined && itemData.info.costs != null) itemDescr += "<p><strong>ITEMS NEEDED:</strong> "+itemData.info.costs+"</p>";
return itemDescr;
}
}

Expand Down

0 comments on commit b461d48

Please sign in to comment.