From 7d50af0054dcf1f7500b31a24c0e5b29c9047b26 Mon Sep 17 00:00:00 2001 From: derekc Date: Thu, 26 Feb 2026 22:57:22 -0800 Subject: [PATCH] Show cost per egg as 2 decimal places on dashboard Co-Authored-By: Claude Sonnet 4.6 --- nginx/html/index.html | 4 ++-- nginx/html/js/dashboard.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nginx/html/index.html b/nginx/html/index.html index d531849..d2c5530 100644 --- a/nginx/html/index.html +++ b/nginx/html/index.html @@ -73,7 +73,7 @@ - - + + diff --git a/nginx/html/js/dashboard.js b/nginx/html/js/dashboard.js index 0f13b9f..aabb7b3 100644 --- a/nginx/html/js/dashboard.js +++ b/nginx/html/js/dashboard.js @@ -94,8 +94,8 @@ async function loadDashboard() { document.getElementById('s-30d').textContent = stats.total_eggs_30d; document.getElementById('s-avg-day').textContent = stats.avg_eggs_per_day_30d ?? '—'; document.getElementById('s-avg-hen').textContent = stats.avg_eggs_per_hen_day_30d ?? '—'; - document.getElementById('s-cpe').textContent = fmtMoneyFull(budget.cost_per_egg); - document.getElementById('s-cpe-30d').textContent = fmtMoneyFull(budget.cost_per_egg_30d); + document.getElementById('s-cpe').textContent = fmtMoney(budget.cost_per_egg); + document.getElementById('s-cpe-30d').textContent = fmtMoney(budget.cost_per_egg_30d); document.getElementById('s-cpd').textContent = fmtMoney(budget.cost_per_dozen); document.getElementById('s-cpd-30d').textContent = fmtMoney(budget.cost_per_dozen_30d);