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:
commit
8d7001f5bb
|
@ -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' />}
|
||||
|
|
Loading…
Reference in New Issue