diff --git a/frontend/src/hooks/useTasks.js b/frontend/src/hooks/useTasks.js index 4cd7d700..8b965d09 100644 --- a/frontend/src/hooks/useTasks.js +++ b/frontend/src/hooks/useTasks.js @@ -66,8 +66,6 @@ const useTasks = ({ try { const response = await api.post("/tasks", taskData); - console.log("Task added:", response.data); - invalidateTasks(); if (page === DEFAULT_PAGE) { @@ -76,13 +74,6 @@ const useTasks = ({ setPage(DEFAULT_PAGE); } } catch (error) { - console.log("FULL ERROR:", error); - console.log( - error?.response?.data?.message || - error?.response?.data || - error.message, - ); - alert(error?.response?.data?.message || "Failed to create task"); throw error; } };