fix error on first load

This commit is contained in:
Roland Osborne 2022-09-20 15:19:12 -07:00
parent c615d73fbf
commit b4b6e11907
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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({});