Fix getUserSetting incorrectly returning null for all falsy values

This commit is contained in:
advplyr
2026-08-02 17:43:45 -05:00
parent 9562e8f252
commit 8b70d02332
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ export const getters = {
return state.user.bookmarks.filter((bm) => bm.libraryItemId === libraryItemId)
},
getUserSetting: (state) => (key) => {
return state.settings?.[key] || null
return state.settings?.[key] ?? null
},
getUserCanUpdate: (state) => {
return !!state.user?.permissions?.update