fix(client): use the right language-modal selector (#1136)

## Description:
Use the proper language-modal selector tag in initialize for the
language modal.
fixes https://github.com/openfrontio/OpenFrontIO/issues/865

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

## Please put your Discord username so you can be contacted if a bug or
regression is found:

ghisloufou
This commit is contained in:
Ghis
2025-06-11 04:54:04 +02:00
committed by evanpelle
parent c45b17a8b4
commit f786023b1c
+3 -3
View File
@@ -90,13 +90,13 @@ class Client {
const langSelector = document.querySelector(
"lang-selector",
) as LangSelector;
const LanguageModal = document.querySelector(
"lang-selector",
const languageModal = document.querySelector(
"language-modal",
) as LanguageModal;
if (!langSelector) {
console.warn("Lang selector element not found");
}
if (!LanguageModal) {
if (!languageModal) {
console.warn("Language modal element not found");
}