Skip to content

Commit

Permalink
fix error on due date if there's no date
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Jan 18, 2023
1 parent 9471c40 commit 703559a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ export const ui = (() => {
todos.innerText = `Number of to-dos: ${project.todosLength}`;

const expiring = document.createElement("p");
const dueDateFormat = project.expiring.todoDue.split("-").join(",");
const dueDateFormat = project.expiring.todoDue?.split("-").join(",");
expiring.classList.add("main-page-due");
expiring.innerText = project.expiring.todoTitle == undefined ? ""
: `"${project.expiring.todoTitle
Expand Down

0 comments on commit 703559a

Please sign in to comment.