detect no channels or tags

This commit is contained in:
jessop 2019-08-09 09:44:49 -04:00
parent 1267eeb0d1
commit 929b00aefa

View file

@ -106,7 +106,10 @@ function ClaimListDiscover(props: Props) {
.unix()
)}`;
}
const hasContent =
(personalSort === SEARCH_SORT_CHANNELS && subscribedChannels.length) ||
(personalSort === SEARCH_SORT_YOU && !!tags.length);
console.log('has content', String(hasContent));
const claimSearchCacheQuery = createNormalizedClaimSearchKey(options);
const uris = claimSearchByQuery[claimSearchCacheQuery] || [];
const shouldPerformSearch =