From d70114cf2173896df71b2e910d2ec480405261bb Mon Sep 17 00:00:00 2001 From: Cay Date: Fri, 13 Mar 2026 14:56:04 +0000 Subject: [PATCH] popup 8 --- public/js/buildings/wohnhaus.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/public/js/buildings/wohnhaus.js b/public/js/buildings/wohnhaus.js index afbde44..b36f7af 100644 --- a/public/js/buildings/wohnhaus.js +++ b/public/js/buildings/wohnhaus.js @@ -37,17 +37,17 @@ async function loadInventory() { let html = ""; items.forEach((item) => { - const icon = item.icon || "/images/items/default.png"; - const name = item.name || "Unbekannt"; + const icon = item.icon ? item.icon : "/images/items/default.png"; + const name = item.name ? item.name : "Unbekannt"; html += ` -
- -

${name}

-
- `; +
+ +

${name}

+
+ `; }); document.getElementById("inventory").innerHTML = html;