Budget: hide percent-of-income when month income is under $1
build-container / build (push) Successful in 47s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-21 14:32:17 -04:00
1 parent 4b93d6229d
commit ae29738cee
1 file changed
+1 -1
+1 -1
View File
@@ -77,7 +77,7 @@ function render(){
const sumB=rows.reduce((a,r)=>a+(+r.edit||0),0),spent=rows.reduce((a,r)=>a+r.spent,0);
const ready=S.ready+(S.budgeted_month-sumB);
$("#inc").textContent=money(S.income_month);$("#il").textContent=`Income · ${mname(month)}`;
$("#bud").textContent=money(sumB);$("#buds").textContent=S.income_month?`${Math.round(sumB/S.income_month*100)}% of this month’s income`:"";
$("#bud").textContent=money(sumB);$("#buds").textContent=S.income_month>=1?`${Math.round(sumB/S.income_month*100)}% of this month’s income`:"";
$("#spent").textContent=money(spent);
$("#ready").textContent=money(ready);const rb=$("#readybox");const z=Math.abs(ready)<0.005;
rb.className="card kpi ready "+(z?"zero":ready<0?"neg":"pos");