Open Vamoss opened 4 years ago
The variable vote is not defined when clicking downvote option: https://github.com/vitorfs/bootcamp/blob/master/bootcamp/static/js/qa.js#L69 https://github.com/vitorfs/bootcamp/blob/master/bootcamp/static/js/qa.js#L93
vote
Recommending setting it like:
var vote = $(this).hasClass("up-vote") ? "U" : "D";
The variable
vote
is not defined when clicking downvote option: https://github.com/vitorfs/bootcamp/blob/master/bootcamp/static/js/qa.js#L69 https://github.com/vitorfs/bootcamp/blob/master/bootcamp/static/js/qa.js#L93Recommending setting it like: