Skip to content

Commit

Permalink
server, electron: Fix crash if locale is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Oct 12, 2024
1 parent 729a188 commit bae63b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bae63b0

Please sign in to comment.