From b4b6e11907ec5b4e91f9aad24c5c492557e67e1a Mon Sep 17 00:00:00 2001 From: Roland Osborne Date: Tue, 20 Sep 2022 15:19:12 -0700 Subject: [PATCH] fix error on first load --- app/mobile/src/context/useChannelContext.hook.js | 2 +- app/mobile/src/context/useStoreContext.hook.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mobile/src/context/useChannelContext.hook.js b/app/mobile/src/context/useChannelContext.hook.js index 66d484d0..77412f52 100644 --- a/app/mobile/src/context/useChannelContext.hook.js +++ b/app/mobile/src/context/useChannelContext.hook.js @@ -31,7 +31,7 @@ export function useChannelContext() { update.summary = channel?.data?.channelSummary; update.detailRevision = channel?.data?.detailRevision; update.topicRevision = channel?.data?.topicRevision; - channels.current.set(channelId, channel); + channels.current.set(channelId, update); } const setChannelDetails = (channelId, detail, revision) => { let channel = channels.current.get(channelId); diff --git a/app/mobile/src/context/useStoreContext.hook.js b/app/mobile/src/context/useStoreContext.hook.js index c605406a..56121205 100644 --- a/app/mobile/src/context/useStoreContext.hook.js +++ b/app/mobile/src/context/useStoreContext.hook.js @@ -1,7 +1,7 @@ import { useEffect, useState, useRef, useContext } from 'react'; import SQLite from "react-native-sqlite-storage"; -const DATABAG_DB = 'databag_v027.db'; +const DATABAG_DB = 'databag_v033.db'; export function useStoreContext() { const [state, setState] = useState({});