Skip to content

Commit f01dabb

Browse files
author
wuzihao051119
committed
fix blank locale
1 parent 36c3cfa commit f01dabb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/lib/stores/preferences.store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface ThemeSetting {
1111
// Locale to use for formatting dates, numbers, etc.
1212
export const locale = persisted<string | undefined>('locale', 'default', {
1313
serializer: {
14-
parse: (text) => text,
14+
parse: (text) => text || 'default',
1515
stringify: (object) => object ?? '',
1616
},
1717
});

0 commit comments

Comments
 (0)