From 8f57cfe170ca9a1d9e7ce6a2c40c50f4e636712e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 26 Sep 2021 11:23:51 +0200 Subject: [PATCH] fds --- files/templates/award_modal.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/templates/award_modal.html b/files/templates/award_modal.html index b1d552c33b..9b52b594be 100644 --- a/files/templates/award_modal.html +++ b/files/templates/award_modal.html @@ -49,6 +49,7 @@ var thisDownvoteButton = downvoteButton[j]; var thisScoreText = scoreText[j]; var thisScore = Number(thisScoreText.textContent); + var voteDirection = "0" if (thisUpvoteButton.classList.contains('active')) { thisUpvoteButton.classList.remove('active') @@ -99,6 +100,7 @@ var thisDownvoteButton = downvoteButton[j]; var thisScoreText = scoreText[j]; var thisScore = Number(thisScoreText.textContent); + var voteDirection = "0" if (thisDownvoteButton.classList.contains('active')) { thisDownvoteButton.classList.remove('active')