diff --git a/src/client/store.ts b/src/client/store.ts index 952c5fef53..76295e5489 100644 --- a/src/client/store.ts +++ b/src/client/store.ts @@ -253,7 +253,7 @@ export const store = createStore({ init(state, x) { for (const [key, value] of Object.entries(defaultDeviceUserSettings)) { - if (x[key]) { + if (Object.prototype.hasOwnProperty.call(x, key)) { state[key] = x[key]; } else { state[key] = value; @@ -471,7 +471,7 @@ export const store = createStore({ init(state, x) { for (const [key, value] of Object.entries(defaultSettings)) { - if (x[key]) { + if (Object.prototype.hasOwnProperty.call(x, key)) { state[key] = x[key]; } else { state[key] = value;