aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfileBadges.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-07-23 18:55:27 -0400
committerIvan Chen <ivan@tagg.id>2021-07-23 18:55:27 -0400
commitc3febe151a34456cecbe84ffaac6eeea56254005 (patch)
tree3e1465a0e195c3b9676513606089a3dd141b0176 /src/components/profile/ProfileBadges.tsx
parent811426f6a4d2e3495d45c0ed1b209f2ea539e26f (diff)
parente39fcbd9e35f6a5e36afe248e24bea0dd3859202 (diff)
Merge branch 'master' into tma994-bugfix-camera-screen-preview
# Conflicts: # src/components/moments/TrimmerPlayer.tsx # src/screens/upload/EditMedia.tsx
Diffstat (limited to 'src/components/profile/ProfileBadges.tsx')
-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 && (