full-stack-web-development
full-stack-web-development copied to clipboard
Marking as not done fails
Bug description
Once a todo is created and marked as done, the user is then unable to unmark the todo item as done.
Steps to reproduce
Click the ticked circle results in no change.
Expected behavior
The Todo item should recolour, and the tick should be removed from the circle.
Example repository
No response
Anything else?
This can easily be fixed by making sure that in we never let data.done be sent through as undefined as Prisma is expecting a boolean.
/workspace/full-stack-web-development/src/routes/todos/[uid].json.ts