To-Dos -> To Do's (#12290)

* To-Dos -> To Do's

* To-Do -> To Do
This commit is contained in:
Matteo Pagliazzi
2020-06-17 17:33:30 +02:00
committed by GitHub
parent d7854f3809
commit 39427a75db
18 changed files with 74 additions and 74 deletions

View File

@@ -42,7 +42,7 @@ function _calculateDelta (task, direction, cron) {
) / task.checklist.length;
}
// If To-Do, point-match the TD per checklist item completed
// If To Do, point-match the TD per checklist item completed
if (task.type === 'todo' && !cron) {
nextDelta *= 1 + reduce(task.checklist, (m, i) => m + (i.completed ? 1 : 0), 0);
}
@@ -80,7 +80,7 @@ function _calculateReverseDelta (task, direction) {
// before the task was checked.
let nextDelta = testVal - currVal;
// Checklists - If To-Do, point-match the TD per checklist item completed
// Checklists - If To Do, point-match the TD per checklist item completed
if (task.checklist && task.checklist.length > 0 && task.type === 'todo') {
nextDelta *= 1 + reduce(task.checklist, (m, i) => m + (i.completed ? 1 : 0), 0);
}