full-stack-web-development icon indicating copy to clipboard operation
full-stack-web-development copied to clipboard

Marking as not done fails

Open CJ13th opened this issue 3 years ago • 0 comments

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

Screenshot 2021-12-24 at 22 29 54 Screenshot 2021-12-24 at 22 30 21

CJ13th avatar Dec 24 '21 22:12 CJ13th