mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-09-29 00:10:50 +00:00
Wait for key lookup to finish before fetching trending and zapped
This commit is contained in:
parent
ecc978a59a
commit
3b018287a2
@ -112,7 +112,7 @@ const ExploreSidebar: Component = () => {
|
||||
scores: {},
|
||||
}));
|
||||
|
||||
getTrendingUsers(`explore_sidebar_${APP_ID}`, account?.publicKey);
|
||||
account?.isKeyLookupDone && getTrendingUsers(`explore_sidebar_${APP_ID}`, account?.publicKey);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -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}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user