diff --git a/apps/client/src/widgets/layout/StatusBar.tsx b/apps/client/src/widgets/layout/StatusBar.tsx index aaecd9b09..e7511c768 100644 --- a/apps/client/src/widgets/layout/StatusBar.tsx +++ b/apps/client/src/widgets/layout/StatusBar.tsx @@ -148,18 +148,18 @@ function LanguageSwitcher({ note }: StatusBarContext) { title={t("status_bar.language_title")} text={{getLocaleName(activeLocale)}} > - {processedLocales.map((locale, index) => { - if (typeof locale === "object") { - return + (typeof locale === "object") ? ( + setCurrentNoteLanguage(locale.id)} - >{locale.name}; - } else { - return ; - } - })} + >{locale.name} + ) : ( + + ) + )} openInAppHelpFromUrl("veGu4faJErEM")}