fix banner and chart color

This commit is contained in:
2026-06-24 11:52:09 +03:30
parent 6c89375370
commit d083469710
6 changed files with 31 additions and 15 deletions
+5 -1
View File
@@ -29,7 +29,11 @@ export const useSettingsStore = defineStore('settings', () => {
if (value == null) {
return false
}
return value === true || String(value).toLowerCase() === 'true'
if (value === true) {
return true
}
const normalized = String(value).trim().toLowerCase()
return normalized === 'true' || normalized === '1' || normalized === 'yes'
}
function mergeSettings(items?: AppSetting[] | null) {