From b7b99350a8a93cea80d9e4da1ccaa1af90deac9d Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Mon, 3 Jun 2024 17:43:42 +0200 Subject: [PATCH] fix paging --- src/contexts/ReadsContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contexts/ReadsContext.tsx b/src/contexts/ReadsContext.tsx index 6c13867..55c5916 100644 --- a/src/contexts/ReadsContext.tsx +++ b/src/contexts/ReadsContext.tsx @@ -309,7 +309,7 @@ export const ReadsProvider = (props: { children: ContextChildren }) => { }; const fetchNotes = (topic: string, subId: string, until = 0, includeReplies?: boolean) => { - const t = topic;//account?.publicKey || '532d830dffe09c13e75e8b145c825718fc12b0003f61d61e9077721c7fff93cb'; + const t = topic === 'none' ? '' : topic;//account?.publicKey || '532d830dffe09c13e75e8b145c825718fc12b0003f61d61e9077721c7fff93cb'; const [scope, timeframe] = t.split(';'); updateStore('isFetching', true); @@ -398,7 +398,7 @@ export const ReadsProvider = (props: { children: ContextChildren }) => { updateStore('selectedFeed', reconcile({...feed})); clearNotes(); - fetchNotes(feed.hex === 'none' ? '' : feed.hex , `${APP_ID}`, 0, feed.includeReplies); + fetchNotes(feed.hex , `${APP_ID}`, 0, feed.includeReplies); } };