From b787b4cca7cf74eca4b3df0c94bb56f098f5f947 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 14 Sep 2023 13:38:43 -0500 Subject: [PATCH] ProfileFamiliarFollowers: add `key` prop, fix console error --- .../features/ui/components/profile-familiar-followers.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/soapbox/features/ui/components/profile-familiar-followers.tsx b/app/soapbox/features/ui/components/profile-familiar-followers.tsx index 56023f42a..bac65eb9d 100644 --- a/app/soapbox/features/ui/components/profile-familiar-followers.tsx +++ b/app/soapbox/features/ui/components/profile-familiar-followers.tsx @@ -44,7 +44,7 @@ const ProfileFamiliarFollowers: React.FC = ({ account } const accounts: Array = familiarFollowers.map(account => !!account && ( - + = ({ account truncate dangerouslySetInnerHTML={{ __html: account.display_name_html }} /> - {/* */} {account.verified && } - )).toArray(); + )).toArray().filter(Boolean); if (familiarFollowerIds.size > 2) { accounts.push( - +