diff --git a/src/stores/sync_config.js b/src/stores/sync_config.js index 8d07fb9c9..c87e0bece 100644 --- a/src/stores/sync_config.js +++ b/src/stores/sync_config.js @@ -598,19 +598,19 @@ export const useSyncConfigStore = defineStore('sync_config', { } console.log('======') - console.log('CACHE', cache.prefsStorage.simple.conversationDisplay) - console.log('LIVE', live.prefsStorage.simple.conversationDisplay) - if (cache._timestamp > live._timestamp) { + console.log('CACHE', cache?.prefsStorage?.simple?.conversationDisplay) + console.log('LIVE', live?.prefsStorage?.simple?.conversationDisplay) + if (cache?._timestamp > live?._timestamp) { console.log('C > L') - } else if (cache._timestamp === live._timestamp) { + } else if (cache?._timestamp === live?._timestamp) { console.log('C = L') } else { console.log('C < L') } let { recent, stale, needUpload } = _getRecentData(cache, live) console.log('======') - console.log('RECENT', recent.prefsStorage.simple.conversationDisplay) - console.log('STALE', stale.prefsStorage.simple.conversationDisplay) + console.log('RECENT', recent.prefsStorage?.simple?.conversationDisplay) + console.log('STALE', stale?.prefsStorage?.simple?.conversationDisplay) console.log('======') const userNew = userData.created_at > NEW_USER_DATE