Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
xreedev committed Jul 30, 2024
1 parent b91f759 commit 6070bbb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ document.addEventListener("DOMContentLoaded", function () {
eventsTable.appendChild(eventColumn);

let tasks = JSON.parse(localStorage.getItem("tasks"));
let taskCount = tasks.filter(task => task["eventId"] === eventId).length;

let taskCount = tasks.filter((task) => task["eventId"] === eventId).length;

if (!localStorage.getItem("task-status-" + eventId)) {

let initialStatusArray = Array(taskCount).fill("Not Started");

localStorage.setItem(
Expand All @@ -34,7 +32,6 @@ document.addEventListener("DOMContentLoaded", function () {
localStorage.setItem("failedTasks", JSON.stringify(failed));
});


function createRow(eventId, eventName, startDate, endDate) {
let idRow = document.createElement("td");
let nameRow = document.createElement("td");
Expand Down

0 comments on commit 6070bbb

Please sign in to comment.