React Todo-App problem

Link to the project

In App.js add on Line 21:

return {...todo, completed: !todo.completed}
1 Like

Yes that is correct! :slightly_smiling_face:

Still not working

why the terminal is giving false 2 times?

Hey there! I checked your code once again and I am unable to detect any bugs if you change that part of your code the the answer provided above by jenovs.

And I see you are trying to see why that is loging twice true or twice false everytime you click the check box.

I do not know how the console of sandbox platform works. However if I tried in other browser consoles, it logs only one true or false.

okay thank you I’ll check it once again