pl-fe: i'm starting to hate this thing
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -89,10 +89,10 @@ const mergeSettings = (state: State, updating = false) => {
|
||||
};
|
||||
|
||||
const useSettingsStore = create<State>()(mutative((set) => ({
|
||||
defaultSettings: v.parse(settingsSchema, {}),
|
||||
defaultSettings: v.parse(settingsSchema, { locale: navigator.language }),
|
||||
userSettings: {},
|
||||
|
||||
settings: v.parse(settingsSchema, {}),
|
||||
settings: v.parse(settingsSchema, { locale: navigator.language }),
|
||||
|
||||
loadDefaultSettings: (settings: APIEntity) => set((state: State) => {
|
||||
if (typeof settings !== 'object') return;
|
||||
|
||||
Reference in New Issue
Block a user