fix localStorage restore
This commit is contained in:
parent
0daa27e11a
commit
dc950ed3fe
@ -67,7 +67,7 @@ const localStorageEffect =
|
||||
if (savedValue != null) {
|
||||
const storageSettings = JSON.parse(savedValue)
|
||||
storageSettings.show = false
|
||||
setSelf(storageSettings)
|
||||
setSelf({ ...settingStateDefault, ...storageSettings })
|
||||
}
|
||||
|
||||
onSet((newValue: Settings, _: string, isReset: boolean) =>
|
||||
|
Loading…
Reference in New Issue
Block a user