Skip to content

Marking as not done fails #23

@CJ13th

Description

@CJ13th

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions