diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index 32f4628d4..69adcfed1 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -11,7 +11,7 @@ import { authActions } from '../../coral-framework'; -import Comment from './Comment'; +import Stream from './Stream'; import CommentBox from '../../coral-plugin-commentbox/CommentBox'; import InfoBox from '../../coral-plugin-infobox/InfoBox'; @@ -156,11 +156,7 @@ class Embed extends Component { refetch={refetch} showSignInDialog={showSignInDialog}/> } - { - asset.comments.map(comment => { - return ; - }) - } + { { + return ( +
+ { + comments.map(comment => { + return ; + }) + } +
+ ); +}; + +Stream.propTypes = { + comments: PropTypes.array.isRequired +}; + +export default Stream;