diff --git a/client/src/components/EditTodo.jsx b/client/src/components/EditTodo.jsx index 1038727..1e07e9e 100644 --- a/client/src/components/EditTodo.jsx +++ b/client/src/components/EditTodo.jsx @@ -9,7 +9,7 @@ const EditTodo = ({ todo }) => { e.preventDefault(); try { const body = { description }; - const response = await fetch( + await fetch( `http://localhost:5000/todos/${todo.todo_id}`, { method: "PUT", diff --git a/client/src/components/InputTodo.jsx b/client/src/components/InputTodo.jsx index 20474a7..f3cc002 100644 --- a/client/src/components/InputTodo.jsx +++ b/client/src/components/InputTodo.jsx @@ -7,7 +7,7 @@ const InputTodo = () => { e.preventDefault(); try { const body = { description }; - const response = await fetch("http://localhost:5000/todos", { + await fetch("http://localhost:5000/todos", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify(body) diff --git a/client/src/components/ListTodos.jsx b/client/src/components/ListTodos.jsx index 074a9cc..d702411 100644 --- a/client/src/components/ListTodos.jsx +++ b/client/src/components/ListTodos.jsx @@ -9,7 +9,7 @@ const ListTodos = () => { const deleteTodo = async id => { try { - const deleteTodo = await fetch(`http://localhost:5000/todos/${id}`, { + await fetch(`http://localhost:5000/todos/${id}`, { method: "DELETE" });