Merge branch 'feed-suggestions-hide-empty' into 'develop'
Hide FeedSuggestions if empty See merge request soapbox-pub/soapbox-fe!1647
This commit is contained in:
commit
547bb0a9e9
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ const SuggestionItem = ({ accountId }: { accountId: string }) => {
|
|||
const FeedSuggestions = () => {
|
||||
const intl = useIntl();
|
||||
const suggestedProfiles = useAppSelector((state) => state.suggestions.items);
|
||||
const isLoading = useAppSelector((state) => state.suggestions.isLoading);
|
||||
|
||||
if (!isLoading && suggestedProfiles.size === 0) return null;
|
||||
|
||||
return (
|
||||
<Card size='lg' variant='rounded'>
|
||||
|
|
Loading…
Reference in a new issue