From 53f1176ef8293b580ee6cdbd45959198ffdf5cbb Mon Sep 17 00:00:00 2001 From: haunter Date: Tue, 28 Apr 2026 22:50:54 +0300 Subject: [PATCH] fix 2 --- static/js/components/townViewer.js | 1 + templates/dashboard.html | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/static/js/components/townViewer.js b/static/js/components/townViewer.js index 1911598..bfbfef3 100644 --- a/static/js/components/townViewer.js +++ b/static/js/components/townViewer.js @@ -167,6 +167,7 @@ window.renderTownDetails = function() { const mCap = resObj.market_capacity || 0; const aCap = resObj.available_trade_capacity != null ? resObj.available_trade_capacity : mCap; + console.log("Town:", t.town_name, "MarketCap:", mCap, "AvailCap:", aCap, "ResObj:", resObj); document.getElementById('td-market').innerHTML = mCap > 0 ? `📦 Εμπορική Χωρητικότητα: ${window.fmt(aCap)} / ${window.fmt(mCap)}` diff --git a/templates/dashboard.html b/templates/dashboard.html index 50d5bf2..1d86733 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -258,11 +258,11 @@ - - - - - - + + + + + +