From 0ed6203a6237db77096aff0a9a1ff6defb7e017f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 18 Mar 2022 22:55:22 +0530 Subject: [PATCH] Fix for boolean prefs --- src/store/prefs-store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) => {