diff --git a/homepage/static/assets/js/mindflow.js b/homepage/static/assets/js/mindflow.js index 2ece044..984ebd9 100644 --- a/homepage/static/assets/js/mindflow.js +++ b/homepage/static/assets/js/mindflow.js @@ -6,7 +6,7 @@ const articles = document.getElementsByTagName("article"); document.getElementById("filter").classList.remove("hidden"); for (let i = 0; i < buttons.length; ++i) - if (buttons[i].hasAttribute("name")) + if (buttons[i].name !== "") buttons[i].addEventListener("click", e => { const category = e.target.name; for (let j = 0; j < articles.length; ++j)