fix: check for null string on localstorage (#3529)
This commit is contained in:
parent
f9b5c7db7a
commit
c356874bcb
2 changed files with 5 additions and 2 deletions
2
lnbits/static/bundle.min.js
vendored
2
lnbits/static/bundle.min.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,9 @@
|
|||
const localStore = (key, defaultValue) => {
|
||||
const value = Quasar.LocalStorage.getItem(key)
|
||||
return value !== null && value !== undefined && value !== 'undefined'
|
||||
return value !== null &&
|
||||
value !== 'null' &&
|
||||
value !== undefined &&
|
||||
value !== 'undefined'
|
||||
? value
|
||||
: defaultValue
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue