cms icon indicating copy to clipboard operation
cms copied to clipboard

bug: Getting error when click mark as completed

Open rahulpandey70 opened this issue 1 year ago • 5 comments

Describe the bug Getting 400 when click on mark as completed

To Reproduce Steps to reproduce the behavior:

  1. Go to week 9 and click on mark as completed
  2. open network tab and you will see the error

rahulpandey70 avatar May 13 '24 05:05 rahulpandey70

Works fine when you unsave your previous bookmarks and re save it. Errors out for existing bookmarks, incase you want to unsave it, also existing bookmarks aren't rendered.

Zafeeruddin avatar May 13 '24 07:05 Zafeeruddin

Works fine when you unsave your previous bookmarks and re save it. Errors out for existing bookmarks, incase you want to unsave it, also existing bookmarks aren't rendered.

Issue is not in saving bookmarks, issue is when you finished watching video and you click "Mark as completed" then it throws 400 error.

rahulpandey70 avatar May 13 '24 09:05 rahulpandey70

When the video completesz it's automatically marked as completes, hence the issue if you click it again. Need to handle this in a global state, so that the button changes the state as soon as mark as complete request is being sent.

nimit9 avatar May 13 '24 09:05 nimit9

When the video completesz it's automatically marked as completes, hence the issue if you click it again. Need to handle this in a global state, so that the button changes the state as soon as mark as complete request is being sent.

but sidebar checkbox doesn't get tick automatically

rahulpandey70 avatar May 13 '24 10:05 rahulpandey70

This does reproduce @rahulpandey70. I am working on this.

ashuk1109 avatar May 13 '24 16:05 ashuk1109