Skip to content

chore : remove debug console.log and alert statements from useTasks hook#1888

Open
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#1883
Open

chore : remove debug console.log and alert statements from useTasks hook#1888
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:#1883

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Closes #1883

Summary of What Has Been Done

Removed all debug console.log statements and the disruptive alert() popup from frontend/src/hooks/useTasks.js.

Changes Made

  • Removed console.log in getTasks catch block
  • Removed console.log("Task added:", response.data) after task creation
  • Removed console.log("FULL ERROR:", error) and related log in addTask catch block
  • Replaced alert(error?.response?.data?.message || "Failed to create task") with silent re-throw of the error (the caller already handles errors)
  • Removed console.log in updateTask catch block

Impact it Made

  • Cleaner browser console for production users
  • Removes disruptive alert() popup on task creation failure
  • Reduces noise in developer debugging
  • Improves user experience during task operations

Note: Please assign this PR to the tmdeveloper007 account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore : remove debug console.log statements from useTasks hook

1 participant