Skip to content
6 changes: 3 additions & 3 deletions app/lib/methods/userPreferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class UserPreferences {

getString(key: string): string | null {
try {
return this.mmkv.getString(key) || null;
return this.mmkv.getString(key) ?? null;
} catch {
return null;
}
Expand All @@ -110,7 +110,7 @@ class UserPreferences {

getBool(key: string): boolean | null {
try {
return this.mmkv.getBoolean(key) || null;
return this.mmkv.getBoolean(key) ?? null;
} catch {
return null;
}
Expand Down Expand Up @@ -139,7 +139,7 @@ class UserPreferences {

getNumber(key: string): number | null {
try {
return this.mmkv.getNumber(key) || null;
return this.mmkv.getNumber(key) ?? null;
} catch {
return null;
}
Expand Down