fix(numbers): round skills, round header Gold, correct tests

This commit is contained in:
Kalista Payne
2025-11-17 15:34:00 -06:00
parent 52606a0efd
commit b9482c58d5
6 changed files with 17 additions and 18 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ function _calculateDelta (task, direction, cron) {
nextDelta *= 1 + reduce(task.checklist, (m, i) => m + (i.completed ? 1 : 0), 0);
}
}
if (nextDelta < 0) {
if (nextDelta > -1 && nextDelta < 0) {
return Math.floor(nextDelta);
}
return Math.ceil(nextDelta);