Hide FeedSuggestions if empty

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-07-18 21:10:05 +02:00
parent 827146ad17
commit b92cdabd62
1 changed files with 3 additions and 0 deletions

View File

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