Skip to content

Commit

Permalink
Replaced console.log with console.error for errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzarox committed Apr 25, 2023
1 parent a881181 commit 368f095
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client/src/components/AddTodo.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const AddTodo = ({ updateTodos }) => {
.createTodo({ title, description })
.then((newTodo) => updateTodos(newTodo))
.catch((err) => {
console.log(err);
console.error(err);
});
};

Expand Down
4 changes: 2 additions & 2 deletions client/src/services/todoServices.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const completeTodo = async (id) => {
});
return response;
} catch (err) {
console.log(err);
console.error(err);
}
};

Expand All @@ -57,7 +57,7 @@ export const deleteTodo = async (id) => {
const response = await request('DELETE', `/api/todos/${id}`, {});
return response;
} catch (err) {
console.log(err);
console.error(err);
}
};

Expand Down

0 comments on commit 368f095

Please sign in to comment.