react-todo-2019 icon indicating copy to clipboard operation
react-todo-2019 copied to clipboard

Fix: generateId conditional have to be with length > 0

Open Fziliotti opened this issue 4 years ago • 0 comments

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" =)

Fziliotti avatar Mar 23 '20 00:03 Fziliotti