diff options
author | Shravya Ramesh <37447613+shravyaramesh@users.noreply.github.com> | 2021-07-23 16:01:16 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 16:01:16 -0700 |
commit | 93b0bdb6d5d3070ece012626f9d9d6634f0eb0d8 (patch) | |
tree | de1aab12445184023db6b7f1e5dce94e8416d233 /src/components/profile/ProfileBadges.tsx | |
parent | 6fcfb36b37dd51d3e9d5baf025b896cc6f6045ee (diff) | |
parent | 2f64db843b80229d08f8f0ae7e1d80b24ac38c12 (diff) |
Merge branch 'master' into tma936-pause-video
Diffstat (limited to 'src/components/profile/ProfileBadges.tsx')
-rw-r--r-- | src/components/profile/ProfileBadges.tsx | 8 |
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 && ( |