Don't display WhoToFollow panel if empty
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
972881be85
commit
2239221856
1 changed files with 4 additions and 0 deletions
|
@ -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' />}
|
||||||
|
|
Loading…
Reference in a new issue