From 8100e6a9cff95227778158d2bdc870f32caa72d4 Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Thu, 22 Jul 2021 17:52:16 -0400 Subject: Resolved key warning --- src/components/profile/ProfileBadges.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/components/profile/ProfileBadges.tsx b/src/components/profile/ProfileBadges.tsx index 8e68dc46..c7d3b5ba 100644 --- a/src/components/profile/ProfileBadges.tsx +++ b/src/components/profile/ProfileBadges.tsx @@ -64,8 +64,8 @@ const ProfileBadges: React.FC = ({userXId, screenType}) => { {Array(BADGE_LIMIT) .fill(0) - .map(() => ( - + .map((_item, index) => ( + ))} )} @@ -85,8 +85,8 @@ const ProfileBadges: React.FC = ({userXId, screenType}) => { {Array(BADGE_LIMIT + 1) .fill(0) .splice(displayBadges.length + 1, BADGE_LIMIT) - .map(() => ( - + .map((_item, index) => ( + ))} {/* X button */} {displayBadges.length === BADGE_LIMIT && isOwnProfile && ( -- cgit v1.2.3-70-g09d2