fix(est): preserve zero workflow totals

This commit is contained in:
2026-11-07 02:23:26 +09:00
parent b14c4fccaf
commit 0df87683e3
5 changed files with 45 additions and 3 deletions
+4 -1
View File
@@ -196,7 +196,10 @@ const EstProgress = (() => {
? floating((num(row[prefix + "TC"]) / num(row.TC)) * 100, 2, 1)
: 0;
}
return { rows: calculated.tables.Wonga, total: num(calculated.calculation.total) || current };
return {
rows: calculated.tables.Wonga,
total: calculated.tables.Wonga.length ? num(calculated.calculation.total) : current,
};
}
const gum = costsFor("Gum"),
sa = costsFor("Sa"),