From b461d4857d49efce8bd30de8d5712543de0e76c0 Mon Sep 17 00:00:00 2001 From: Borre <103928083+Borreke0@users.noreply.github.com> Date: Sun, 12 Nov 2023 23:06:14 +0100 Subject: [PATCH] [fix] Show costs of items The costs for crafting items wasn't displayed anymore. This fixes it. --- html/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/js/app.js b/html/js/app.js index bb7534308..b76522b6c 100644 --- a/html/js/app.js +++ b/html/js/app.js @@ -395,7 +395,9 @@ function generateDescription(itemData) { case "labkey": return `

Lab: ${itemData.info.lab}

`; default: - return itemData.description; + let itemDescr = itemData.description; + if (itemData.info.costs != undefined && itemData.info.costs != null) itemDescr += "

ITEMS NEEDED: "+itemData.info.costs+"

"; + return itemDescr; } }