fix: check for null string on localstorage (#3529)

This commit is contained in:
dni ⚡ 2025-11-14 14:15:04 +01:00 committed by GitHub
parent f9b5c7db7a
commit c356874bcb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,9 @@
const localStore = (key, defaultValue) => { const localStore = (key, defaultValue) => {
const value = Quasar.LocalStorage.getItem(key) const value = Quasar.LocalStorage.getItem(key)
return value !== null && value !== undefined && value !== 'undefined' return value !== null &&
value !== 'null' &&
value !== undefined &&
value !== 'undefined'
? value ? value
: defaultValue : defaultValue
} }