Skip to content

Commit

Permalink
Fixed linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Fernandes committed Feb 26, 2024
1 parent 7555418 commit 5b37211
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/EditTodo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/InputTodo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/ListTodos.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
});

Expand Down

0 comments on commit 5b37211

Please sign in to comment.