From c234ab1c2bdbb10afc8e0d6079d678552806770c Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 31 Jan 2024 18:35:40 +0300 Subject: [PATCH] debug-detect --- src/context/following.tsx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/context/following.tsx b/src/context/following.tsx index b22f8db1..163fd030 100644 --- a/src/context/following.tsx +++ b/src/context/following.tsx @@ -81,10 +81,13 @@ export const FollowingProvider = (props: { children: JSX.Element }) => { } createEffect(() => { - if (author() && !subscriptions?.authors?.length && !subscriptions?.topics?.length) { - // && subscriptions.communites?.length - console.debug('[context.following] author with no subs detected') - fetchData() + if (author()) { + console.debug('[context.following] author detect') + if (!subscriptions?.authors?.length && !subscriptions?.topics?.length) { + // && subscriptions.communites?.length + console.debug('[context.following] no subs detected') + fetchData() + } } })