Skip to content

Commit 178fd7b

Browse files
committed
Fix bug in daysLeft function by calling getMonth() method correctly
1 parent a78ca87 commit 178fd7b

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
@@ -46,7 +46,7 @@ export function daysLeft(deadline, today = new Date()) {
4646
const deadlineDate = new Date(year, month - 1, day);
4747
const todaysDate = new Date(
4848
today.getFullYear(),
49-
today.getMonth,
49+
today.getMonth(),
5050
today.getDate()
5151
);
5252
const MS_PER_DAY = 24 * 60 * 60 * 1000;

0 commit comments

Comments
 (0)