Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
abdellatif-laghjaj committed Oct 15, 2023
1 parent f0223cc commit be1cb39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function getRandomId() {
function addToDo(task_input, date_input) {
let task = {
id: getRandomId(),
task: task_input.value.length > 14 ? task_input.value.slice(0, 14) + "..." : task_input.value,
task: task_input.value.length > 10 ? task_input.value.slice(0, 10) + "..." : task_input.value,
dueDate: date_input.value,
completed: false,
status: "pending",
Expand Down

0 comments on commit be1cb39

Please sign in to comment.