diff --git a/src/store/prefs-store.js b/src/store/prefs-store.js index f7e2ae0..e0fd42e 100644 --- a/src/store/prefs-store.js +++ b/src/store/prefs-store.js @@ -46,7 +46,8 @@ const PrefsStore = { getters: { getPreference: state => (id, default_) => { - return state.prefs[id] || default_ + const pref = state.prefs[id] + return pref != null ? pref : default_ }, getPreferenceBoolean: (_, getters) => (...args) => {