about summary refs log tree commit diff
path: root/src/state
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-12-11 17:34:18 -0600
committerGitHub <noreply@github.com>2023-12-11 15:34:18 -0800
commitbae63f9bf0dbc40dd7ea99fde714e92b9fc83dc3 (patch)
tree8b4d06030dbd0603edb9345ba55c64eea44d4191 /src/state
parent3592f6f50b98c6bc81ebbf50f11f85df23376e53 (diff)
downloadvoidsky-bae63f9bf0dbc40dd7ea99fde714e92b9fc83dc3.tar.zst
Patch bad migration, sanitize bad value (#2179)
Diffstat (limited to 'src/state')
-rw-r--r--src/state/persisted/legacy.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/persisted/legacy.ts b/src/state/persisted/legacy.ts
index d70263746..f689c3d06 100644
--- a/src/state/persisted/legacy.ts
+++ b/src/state/persisted/legacy.ts
@@ -94,7 +94,8 @@ export function transform(legacy: Partial<LegacySchema>): Schema {
         legacy.preferences?.postLanguageHistory ||
         defaults.languagePrefs.postLanguageHistory,
       appLanguage:
-        legacy.preferences?.postLanguage || defaults.languagePrefs.appLanguage,
+        legacy.preferences?.primaryLanguage ||
+        defaults.languagePrefs.appLanguage,
     },
     requireAltTextEnabled:
       legacy.preferences?.requireAltTextEnabled ||