Closed blahosyl closed 1 month ago
Getting a 400 error
Unwatching works without issues, only watching is a problem.
I contacted tutoring reagarding the 400 issue with watching tasks.
After tutor Osisin showed me how I can see Django errors in the network tab of Chrome Dev tools, I discovered that the watcher
endpoint was missing the watched:id
.
Changing {task: id}
to {watched:id}
in the API call in Task.js
solved the issue (dbff1d1).
As a Logged-in User,
I want to watch/unwatch tasks,
so that I can update which tasks appear in my Watched feed
Acceptance Criteria
Tasks
handleWatch
&handleUnwatch
functionswatched_id
exists (task is watched),handleUnwatch()
on clicking the eye iconwatched_id
doesn't exist (task is not watched) & there is a logged in user (currentUser
),handleWatch()
on clicking the eye icon