Skip to content

Commit

Permalink
fix current day expiration text
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Jan 19, 2023
1 parent fd9cd49 commit e7aac1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,8 @@ export const ui = (() => {
: `"${project.expiring.todoTitle
}" is the pending to-do closest to due date, with ${
project.expiring.tasksLength} tasks on it.
Will expire ${ intlFormatDistance(new Date(dueDateFormat), new Date())
Will expire ${ isToday(new Date(dueDateFormat)) ? "today"
: intlFormatDistance(new Date(dueDateFormat), new Date())
} (${project.expiring.todoDue}).`;


Expand Down

0 comments on commit e7aac1b

Please sign in to comment.