diff --git a/files/templates/award_modal.html b/files/templates/award_modal.html index ec1ac3ffd6..30f005d6ba 100644 --- a/files/templates/award_modal.html +++ b/files/templates/award_modal.html @@ -3,7 +3,7 @@ function bruh(kind) { document.getElementById('giveaward').disabled=false; document.getElementById('kind').value=kind; var picked = document.getElementsByClassName('picked')[0] - if (picked !== undefined) {picked.classList.toggle('picked');} + if (picked !== null) {picked.classList.toggle('picked');} document.getElementById(kind).classList.toggle('picked') }