diff options
-rw-r--r-- | src/App.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/App.jsx b/src/App.jsx index 8397a9f..832db93 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -18,7 +18,10 @@ function App() { set_todo({ id: todo.id, text: todo.text, - due_date: todo.dueDate.substring(0, 16), + due_date: + todo.dueDate != null + ? todo.dueDate.substring(0, 16) + : todo.dueDate, done: todo.done, priority: todo.priority, creation_date: todo.creationDate, |