From f786023b1c0b5fdf7ad0ce8276d10bfbd747271e Mon Sep 17 00:00:00 2001 From: Ghis <23282302+ghisloufou@users.noreply.github.com> Date: Wed, 11 Jun 2025 04:54:04 +0200 Subject: [PATCH] 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 --- src/client/Main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/Main.ts b/src/client/Main.ts index a8fbf98e8..cab14d6a0 100644 --- a/src/client/Main.ts +++ b/src/client/Main.ts @@ -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"); }