fix: add key to mapped items

This commit is contained in:
Jean-Philippe Sirois
2019-08-12 15:33:32 -04:00
parent b61af14b5e
commit d7c87121f4
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ export function StackedAvatars({ authors }: StackedAvatarsProps) {
return (
<SC.StackedAvatarsWrapper count={authors.length}>
{authors.map((author, index) => (
<SC.AuthorAvatar src={author.avatar} index={index} />
<SC.AuthorAvatar key={index} src={author.avatar} index={index} />
))}
</SC.StackedAvatarsWrapper>
)