When I click upvote button, browser sends request to url https://poal.co/do/vote/351532/up
(example) and gets response {"msg":"Nope"}
with status 400. UI shows post as upvoted (unexpected behavior), while counter stays the same (expected behavior, since request was declined) and I don't see any errors (unexpected behavior).
Update 1: Thank you for the quick fix! Now it works :)
Update 2: There is JS error when you upvote post, it doesn't affect functionality though. main.dff369dbfa57a33abfd8.js:8 Uncaught TypeError: Cannot set property 'innerHTML' of null
When I click upvote button, browser sends request to url `https://poal.co/do/vote/351532/up` (example) and gets response `{"msg":"Nope"}` with status 400. UI shows post as upvoted (unexpected behavior), while counter stays the same (expected behavior, since request was declined) and I don't see any errors (unexpected behavior).
Update 1: Thank you for the quick fix! Now it works :)
Update 2: There is JS error when you upvote post, it doesn't affect functionality though. `main.dff369dbfa57a33abfd8.js:8 Uncaught TypeError: Cannot set property 'innerHTML' of null`
(post is archived)