diff --git a/js/lang.js b/js/lang.js index 0f23c73..8f6a384 100644 --- a/js/lang.js +++ b/js/lang.js @@ -36,7 +36,7 @@ function updateSelectedLanguageButton(language) { }); // Add the "langSelected" class to the selected language button - const selectedButton = document.querySelector(`.langOption.${language}`); + const selectedButton = document.querySelector(`${language}`); selectedButton.classList.add('langSelected'); } \ No newline at end of file