Merge branch 'wtf-empty' into 'develop'

Don't display WhoToFollow panel if empty

See merge request soapbox-pub/soapbox!1804
This commit is contained in:
marcin mikołajczak
2022-09-28 22:18:49 +00:00

View File

@ -29,6 +29,10 @@ const WhoToFollowPanel = ({ limit }: IWhoToFollowPanel) => {
dismissSuggestion.mutate(account.id);
};
if (!isFetching && !suggestions.length) {
return null;
}
return (
<Widget
title={<FormattedMessage id='who_to_follow.title' defaultMessage='People To Follow' />}