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"> <span className="comment-content">
{commentText.map(fragment => { {commentText.map((fragment, index) => {
if (typeof fragment === 'string') { if (typeof fragment === 'string') {
return ( return (
<EmojiText <EmojiText
as="span" as="span"
key={`comments-${id}-fragment-${index}`}
text={fragment} text={fragment}
/> />
); );