server, electron: Fix crash if locale is undefined

This commit is contained in:
Elian Doran 2024-10-12 18:24:10 +03:00
parent 729a188528
commit bae63b08a2
No known key found for this signature in database

View File

@ -18,7 +18,7 @@ export async function initializeTranslations() {
function getCurrentLanguage() {
let language;
if (sql_init.isDbInitialized()) {
language = options.getOption("locale");
language = options.getOptionOrNull("locale");
}
if (!language) {