provide key to comments

This commit is contained in:
Ben Wheeler 2019-07-11 11:55:05 -04:00
parent e704cda0fa
commit 9b3c555078

View file

@ -196,11 +196,12 @@ class Comment extends React.Component {
*/}
<span className="comment-content">
{commentText.map(fragment => {
{commentText.map((fragment, index) => {
if (typeof fragment === 'string') {
return (
<EmojiText
as="span"
key={`comments-${id}-fragment-${index}`}
text={fragment}
/>
);