fixed always false check
This commit is contained in:
parent
ce32c20f67
commit
48447f1c8a
@ -102,7 +102,7 @@ export const useMealPlanStore = defineStore(_STORE_ID, {
|
|||||||
},
|
},
|
||||||
loadClientSettings() {
|
loadClientSettings() {
|
||||||
let s = localStorage.getItem(_LOCAL_STORAGE_KEY)
|
let s = localStorage.getItem(_LOCAL_STORAGE_KEY)
|
||||||
if (s === null || s === {}) {
|
if (s === null) {
|
||||||
return {
|
return {
|
||||||
displayPeriodUom: "week",
|
displayPeriodUom: "week",
|
||||||
displayPeriodCount: 3,
|
displayPeriodCount: 3,
|
||||||
|
@ -73,7 +73,7 @@ export const useUserPreferenceStore = defineStore(_STORE_ID, {
|
|||||||
*/
|
*/
|
||||||
loadDeviceSettings() {
|
loadDeviceSettings() {
|
||||||
let s = localStorage.getItem(_LS_DEVICE_SETTINGS)
|
let s = localStorage.getItem(_LS_DEVICE_SETTINGS)
|
||||||
if (!(s === null || s === {})) {
|
if (s !== null) {
|
||||||
let settings = JSON.parse(s)
|
let settings = JSON.parse(s)
|
||||||
for (s in settings) {
|
for (s in settings) {
|
||||||
Vue.set(this.device_settings, s, settings[s])
|
Vue.set(this.device_settings, s, settings[s])
|
||||||
|
Loading…
Reference in New Issue
Block a user