forked from MarseyWorld/MarseyWorld
fix no-longer existing poll options making voting impossible
parent
e7ecde3415
commit
3976b181ac
|
@ -35,8 +35,10 @@ function option_vote_1(oid, parentid, kind) {
|
|||
if (curr && curr.value)
|
||||
{
|
||||
const scoretext = document.getElementById('score-' + curr.value);
|
||||
const score = Number(scoretext.textContent);
|
||||
scoretext.textContent = score - 1;
|
||||
if (scoretext) {
|
||||
const score = Number(scoretext.textContent);
|
||||
scoretext.textContent = score - 1;
|
||||
}
|
||||
}
|
||||
|
||||
const scoretext = document.getElementById('score-' + full_oid);
|
||||
|
|
Loading…
Reference in New Issue