From 22392218567d936d9bff1fbbddb27bf41b3e8fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 29 Sep 2022 00:06:37 +0200 Subject: [PATCH] Don't display WhoToFollow panel if empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/features/ui/components/who-to-follow-panel.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/soapbox/features/ui/components/who-to-follow-panel.tsx b/app/soapbox/features/ui/components/who-to-follow-panel.tsx index 418d2143c..852abcdba 100644 --- a/app/soapbox/features/ui/components/who-to-follow-panel.tsx +++ b/app/soapbox/features/ui/components/who-to-follow-panel.tsx @@ -29,6 +29,10 @@ const WhoToFollowPanel = ({ limit }: IWhoToFollowPanel) => { dismissSuggestion.mutate(account.id); }; + if (!isFetching && !suggestions.length) { + return null; + } + return ( }