Add a little more safety

This commit is contained in:
Eric Bailey
2023-12-12 09:35:37 -06:00
parent 190ee71988
commit e9c21dc030
5 changed files with 21 additions and 10 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ export function LanguageSettingsScreen(_props: Props) {
(value: Parameters<PickerSelectProps['onValueChange']>[0]) => {
if (!value) return
if (langPrefs.appLanguage !== value) {
setLangPrefs.setAppLanguage(value)
setLangPrefs.setAppLanguage(sanitizeAppLanguageSetting(value))
}
},
[langPrefs, setLangPrefs],