From 051e6cfc0beeca8371feff03061d4b626b8fca92 Mon Sep 17 00:00:00 2001 From: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:47:22 +0200 Subject: [PATCH] fix(web): clear locale setting (#10008) --- web/src/lib/components/user-settings-page/app-settings.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/src/lib/components/user-settings-page/app-settings.svelte b/web/src/lib/components/user-settings-page/app-settings.svelte index ccee1e664f..33b6f5e8b8 100644 --- a/web/src/lib/components/user-settings-page/app-settings.svelte +++ b/web/src/lib/components/user-settings-page/app-settings.svelte @@ -80,7 +80,9 @@ }; const handleLocaleChange = (newLocale: string | undefined) => { - $locale = newLocale; + if (newLocale) { + $locale = newLocale; + } };