From 574a871653dc53474c159ae63837003b91189bd6 Mon Sep 17 00:00:00 2001 From: Julian Dominguez-Schatz Date: Wed, 8 Jan 2025 01:08:56 -0500 Subject: [PATCH] Fix type errors --- .../components/settings/LanguageSettings.tsx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/packages/desktop-client/src/components/settings/LanguageSettings.tsx b/packages/desktop-client/src/components/settings/LanguageSettings.tsx index 8224b022e20..7c7f3199ba5 100644 --- a/packages/desktop-client/src/components/settings/LanguageSettings.tsx +++ b/packages/desktop-client/src/components/settings/LanguageSettings.tsx @@ -14,15 +14,12 @@ const languageOptions: SelectOption[] = [ ['', 'System default'] as [string, string], Menu.line as typeof Menu.line, ].concat( - availableLanguages.map( - lang => - [ - lang, - new Intl.DisplayNames([lang], { - type: 'language', - }).of(lang), - ] as const, - ), + availableLanguages.map(lang => [ + lang, + new Intl.DisplayNames([lang], { + type: 'language', + }).of(lang) || lang, + ]), ); export function LanguageSettings() { @@ -34,7 +31,7 @@ export function LanguageSettings() { primaryAction={