Skip to content

Commit

Permalink
confirm on mark incomplete not complete
Browse files Browse the repository at this point in the history
  • Loading branch information
narthur committed Nov 20, 2024
1 parent 5334620 commit cd6da93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/task.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
const now = new Date();
const isPastDue = taskDue < now;
if (isPastDue && !task.complete) {
if (isPastDue && task.complete) {
const confirmed = confirm(
'This task is past due. Marking it complete will require contacting support to undo. Continue?'
'This task is past due. Marking it incomplete will require contacting support to undo. Continue?',
);
if (!confirmed) return;
}
Expand Down

0 comments on commit cd6da93

Please sign in to comment.