From 1133b05714ef10f31a09fa1523faf9df86f0bfe0 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 24 May 2022 09:46:21 -0400 Subject: [PATCH] Fix key warnings --- .../components/follow_recommendations_list.tsx | 4 ++-- app/soapbox/features/ui/components/profile-dropdown.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/soapbox/features/follow_recommendations/components/follow_recommendations_list.tsx b/app/soapbox/features/follow_recommendations/components/follow_recommendations_list.tsx index 4ca838072..fc5ab38d0 100644 --- a/app/soapbox/features/follow_recommendations/components/follow_recommendations_list.tsx +++ b/app/soapbox/features/follow_recommendations/components/follow_recommendations_list.tsx @@ -31,8 +31,8 @@ const FollowRecommendationsList: React.FC = () => { return (
- {suggestions.size > 0 ? suggestions.map((suggestion: { account: string }) => ( - + {suggestions.size > 0 ? suggestions.map((suggestion: { account: string }, idx: number) => ( + )) : (
diff --git a/app/soapbox/features/ui/components/profile-dropdown.tsx b/app/soapbox/features/ui/components/profile-dropdown.tsx index e3c468b13..121304960 100644 --- a/app/soapbox/features/ui/components/profile-dropdown.tsx +++ b/app/soapbox/features/ui/components/profile-dropdown.tsx @@ -112,7 +112,7 @@ const ProfileDropdown: React.FC = ({ account, children }) => { {menu.map((menuItem, idx) => { if (menuItem.toggle) { return ( -
+
{menuItem.text} {menuItem.toggle}