aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-22 17:52:16 -0400
committerIvan Chen <ivan@tagg.id>2021-07-22 17:52:16 -0400
commit8100e6a9cff95227778158d2bdc870f32caa72d4 (patch)
tree56f3535816f3917208d1eaf47b479fe80cae588d /src
parent95d7c6594ead6f17105573e0cef07ff435909ff5 (diff)
Resolved key warning
Diffstat (limited to 'src')
-rw-r--r--src/components/profile/ProfileBadges.tsx8
1 files changed, 4 insertions, 4 deletions
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<ProfileBadgesProps> = ({userXId, screenType}) => {
<PlusIcon />
{Array(BADGE_LIMIT)
.fill(0)
- .map(() => (
- <View style={[styles.grey, styles.circle]} />
+ .map((_item, index) => (
+ <View key={index} style={[styles.grey, styles.circle]} />
))}
</ScrollView>
)}
@@ -85,8 +85,8 @@ const ProfileBadges: React.FC<ProfileBadgesProps> = ({userXId, screenType}) => {
{Array(BADGE_LIMIT + 1)
.fill(0)
.splice(displayBadges.length + 1, BADGE_LIMIT)
- .map(() => (
- <View style={styles.circle} />
+ .map((_item, index) => (
+ <View key={index} style={styles.circle} />
))}
{/* X button */}
{displayBadges.length === BADGE_LIMIT && isOwnProfile && (