diff --git a/js/app.js b/js/app.js index 416f0e2..17e1d5f 100644 --- a/js/app.js +++ b/js/app.js @@ -730,6 +730,10 @@ const TimeTrack = { this.updateStorage(); }, getOpenTasksForTracker(tasks) { + if (!tasks) { + return 0; + } + let counter = 0; tasks.forEach((task) => {