From 6788e284e9f3a3380272192c0e28b16f20194a0f Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Thu, 25 Apr 2024 00:21:20 +0200 Subject: [PATCH] Prevent selecting an unsupported language In case no language had been selected yet and the detected browser language is not supported, the selection was set to undefined instead of showing the default language --- src/screens/Settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/screens/Settings.tsx b/src/screens/Settings.tsx index 7eed2f78..c5c9ad0d 100644 --- a/src/screens/Settings.tsx +++ b/src/screens/Settings.tsx @@ -40,7 +40,7 @@ import { NumberSetting } from '@/components/settings/NumberSetting.tsx'; import { requestManager } from '@/lib/requests/RequestManager.ts'; import { makeToast } from '@/components/util/Toast.tsx'; import { Select } from '@/components/atoms/Select.tsx'; -import { i18nResources } from '@/i18n'; +import { I18nResourceCode, i18nResources } from '@/i18n'; export function Settings() { const { t, i18n } = useTranslation(); @@ -147,7 +147,7 @@ export function Settings() { } />