Merge branch 'feed-suggestions-hide-empty' into 'develop'

Hide FeedSuggestions if empty

See merge request soapbox-pub/soapbox-fe!1647
environments/review-develop-3zknud/deployments/578
marcin mikołajczak 2022-07-18 19:56:15 +00:00
commit 547bb0a9e9
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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'>