react-todo-2019
react-todo-2019 copied to clipboard
Fix: generateId conditional have to be with length > 0
Hi Sunil, awesome project!
I have found a simple bug in the project. If a user delete all ToDos and create others, the generateID function will create the ID 1 for the two first ToDos.
To solve this, just change the conditional rule to "lenght > 0" =)