diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index 3d0e81bd5..6af6f2636 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'; @@ -153,11 +153,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;