Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix : duplicate tasks issue on "Add Task" button #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahmod001
Copy link

Hi Shaif,

I've fixed a small bug in the todo app where clicking the "Add Task" button multiple times would create duplicate tasks. I've added a state variable to track whether or not the user has submitted the task, and disabled the button until the user submits the task.

I've tested the fix by reproducing the issue and verifying that it is no longer possible to create duplicate tasks.

Please review my changes and let me know if you have any questions or concerns.

Thanks,
Ahmod Hasan

@netlify
Copy link

netlify bot commented Oct 25, 2023

Deploy Preview for wc-react-todo-app failed.

Name Link
🔨 Latest commit c459521
🔍 Latest deploy log https://app.netlify.com/sites/wc-react-todo-app/deploys/65390128f9f1dc000864cf58

@ahmod001 ahmod001 closed this Oct 26, 2023
@ahmod001 ahmod001 reopened this Oct 26, 2023
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.

1 participant