fix: 🎨 simplify undefined test for filters
All checks were successful
repod / xml (push) Successful in 24s
repod / php (push) Successful in 54s
repod / nodejs (push) Successful in 1m9s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-12-25 11:30:17 +01:00
parent 46443321d4
commit c37783d814

View File

@ -9,12 +9,9 @@ export const useSettings = defineStore('settings', {
return {
filters: {
listened:
filters.listened === undefined ? true : filters.listened,
listening:
filters.listening === undefined ? true : filters.listening,
unlistened:
filters.unlistened === undefined ? true : filters.unlistened,
listened: !!filters.listened,
listening: !!filters.listening,
unlistened: !!filters.unlistened,
},
}
} catch {