diff --git a/assets/script.js b/assets/script.js index 8f11ac0..09543de 100644 --- a/assets/script.js +++ b/assets/script.js @@ -713,16 +713,16 @@ async function deleteVoteMeme(memeId) { } async function surveySubmit() { - const satisfaction = document.querySelector('input[name="satisfaction"]:checked').value; - const functionality = document.querySelector('input[name="functionality"]:checked').value; - const content = document.querySelector('input[name="content"]:checked').value; + const satisfaction = document.querySelector('input[name="satisfaction"]:checked'); + const functionality = document.querySelector('input[name="functionality"]:checked'); + const content = document.querySelector('input[name="content"]:checked'); const comment = document.querySelector('textarea[name="comment"]').value; if (satisfaction && functionality && content && comment) { doAction("/survey", { action: "surveySubmit", - satisfaction: satisfaction, - functionality: functionality, - content: content, + satisfaction: satisfaction.value, + functionality: functionality.value, + content: content.value, comment: comment }); }