diff --git a/kanken_online/static/translations.js b/kanken_online/static/translations.js index 7a470d8..6cc6963 100644 --- a/kanken_online/static/translations.js +++ b/kanken_online/static/translations.js @@ -1,7 +1,7 @@ const addStringButton = document.getElementById("add-string-button"); addStringButton.addEventListener("click", (e) => { const stringName = prompt("Enter a string name: "); - if (stringName == "") { + if (!stringName) { return; } for (let section of document.getElementsByClassName("translation-section")) {