diff --git a/src/components/ExploreSidebar/ExploreSidebar.tsx b/src/components/ExploreSidebar/ExploreSidebar.tsx index e4b4ae4..0860b88 100644 --- a/src/components/ExploreSidebar/ExploreSidebar.tsx +++ b/src/components/ExploreSidebar/ExploreSidebar.tsx @@ -112,7 +112,7 @@ const ExploreSidebar: Component = () => { scores: {}, })); - getTrendingUsers(`explore_sidebar_${APP_ID}`, account?.publicKey); + account?.isKeyLookupDone && getTrendingUsers(`explore_sidebar_${APP_ID}`, account?.publicKey); } }); diff --git a/src/components/HomeSidebar/HomeSidebar.tsx b/src/components/HomeSidebar/HomeSidebar.tsx index 0dcfcf9..e28b6c5 100644 --- a/src/components/HomeSidebar/HomeSidebar.tsx +++ b/src/components/HomeSidebar/HomeSidebar.tsx @@ -84,8 +84,10 @@ const HomeSidebar: Component = () => { }, })); - getTrending24h(account?.publicKey, `sidebar_trending_${APP_ID}`); - getMostZapped4h(account?.publicKey, `sidebar_zapped_${APP_ID}`); + if (account?.isKeyLookupDone) { + getTrending24h(account?.publicKey, `sidebar_trending_${APP_ID}`); + getMostZapped4h(account?.publicKey, `sidebar_zapped_${APP_ID}`); + } } });