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
commit 8d7001f5bb
1 changed files with 4 additions and 0 deletions

View File

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