This commit is contained in:
2023-11-28 09:00:46 +07:00
parent d989d6ffad
commit 3c6c9c86d1
7 changed files with 12 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ export function LiveUpdater({ status }: { status: QueryStatus }) {
useEffect(() => {
let sub: NDKSubscription = undefined;
if (status === 'success' && db.account && db.account.follows.length > 0) {
if (status === 'success' && db.account && db.account?.follows?.length > 0) {
queryClient.fetchQuery({ queryKey: ['notification'] });
const filter: NDKFilter = {