From f56e300c817eeef920fd1679c025ce1ee85bc2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Fri, 13 Sep 2024 14:51:41 +0200 Subject: [PATCH] pl-fe: fix who to follow panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- .../features/ui/components/panels/who-to-follow-panel.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/pl-fe/src/features/ui/components/panels/who-to-follow-panel.tsx b/packages/pl-fe/src/features/ui/components/panels/who-to-follow-panel.tsx index 4d0656acc..12f00d6e4 100644 --- a/packages/pl-fe/src/features/ui/components/panels/who-to-follow-panel.tsx +++ b/packages/pl-fe/src/features/ui/components/panels/who-to-follow-panel.tsx @@ -31,7 +31,7 @@ const WhoToFollowPanel = ({ limit }: IWhoToFollowPanel) => { dismissSuggestion.mutate(account.id); }; - if (!isFetching && !suggestions.length) { + if (!isFetching && !suggestionsToRender.length) { return null; } @@ -51,9 +51,8 @@ const WhoToFollowPanel = ({ limit }: IWhoToFollowPanel) => { ) : ( suggestionsToRender.map((suggestion: any) => ( , but it isn't - id={suggestion.account} + key={suggestion.account_id} + id={suggestion.account_id} actionIcon={require('@tabler/icons/outline/x.svg')} actionTitle={intl.formatMessage(messages.dismissSuggestion)} onActionClick={features.suggestionsDismiss ? handleDismiss : undefined}