This commit is contained in:
Aevann1 2022-02-07 14:14:39 +02:00
parent 4cf44004fe
commit 123a0e6631
2 changed files with 2 additions and 2 deletions

View file

@ -280,7 +280,7 @@ function choice_vote(cid, parentid) {
}
let curr = document.getElementById(`current-${parentid}`)
if (curr.value)
if (curr && curr.value)
{
var scoretext = document.getElementById('choice-' + curr.value);
var score = Number(scoretext.textContent);