diff --git a/files/assets/js/comments+submission_listing.js b/files/assets/js/comments+submission_listing.js index e70fc4a57..db3ccc704 100644 --- a/files/assets/js/comments+submission_listing.js +++ b/files/assets/js/comments+submission_listing.js @@ -124,8 +124,8 @@ function bet_vote(t, oid) { var scoretext = document.getElementById('option-' + oid); var score = Number(scoretext.textContent); scoretext.textContent = score + 1; - - document.getElementById("user-coins-amount").innerText = parseInt(document.getElementById("user-coins-amount").innerText) - 200; + + document.getElementById("user-coins-amount").innerText = parseInt(document.getElementById("user-coins-amount").innerText) - 200; } ); } diff --git a/files/routes/polls.py b/files/routes/polls.py index 8025c31cb..7b9220ef3 100644 --- a/files/routes/polls.py +++ b/files/routes/polls.py @@ -49,7 +49,7 @@ def vote_option(option_id, v): elif existing and not option.exclusive: g.db.delete(existing) - return {"message": "Bet successful!"}, 204 + return {"message": "Bet successful!"}, 200 @app.get("/votes/post/option/") @auth_required