Skip to content

Commit a78ca87

Browse files
committed
Fix typo in overdue message formatting in describeDeadline function
1 parent b7b9be1 commit a78ca87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Sprint-3/todo-list/todos.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function daysLeft(deadline, today = new Date()) {
5757
export function describeDeadline(deadline, today = new Date()) {
5858
const days = daysLeft(deadline, today);
5959

60-
if (days < 0) return `Overdue by ${-days} days{days === -1 ? "" : "s"}`;
60+
if (days < 0) return `Overdue by ${-days} days${days === -1 ? "" : "s"}`;
6161
if (days === 0) return "Due today";
6262
if (days === 1) return "Due tomorrow";
6363

0 commit comments

Comments
 (0)