diff --git a/static/script.js b/static/script.js index 8123c42..5e270de 100644 --- a/static/script.js +++ b/static/script.js @@ -625,8 +625,8 @@ if (isIndexPage) { } function syncSkillsHiddenInput() { - if (!skillsHidden) { - var skillsHidden = document.getElementById("skills"); + if (!skillsHidden){ + skillsHidden = document.getElementById("skills"); } // Keep the hidden in sync for form serialisation // The API expects a comma-separated string, so join the array that way