diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index 86510a74d..96d3310cb 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -160,7 +160,7 @@ class Embed extends Component { notification={{text: null}} /> asset.comments.length} loadMore={this.props.loadMore}/> diff --git a/client/coral-embed-stream/src/LoadMore.js b/client/coral-embed-stream/src/LoadMore.js index faf3299e8..803f544bd 100644 --- a/client/coral-embed-stream/src/LoadMore.js +++ b/client/coral-embed-stream/src/LoadMore.js @@ -4,7 +4,7 @@ import translations from 'coral-framework/translations.json'; import {Button} from 'coral-ui'; const lang = new I18n(translations); -const loadMoreComments = (asset_id, comments, loadMore) => { +const loadMoreComments = (assetId, comments, loadMore) => { if (!comments.length) { return; @@ -13,16 +13,16 @@ const loadMoreComments = (asset_id, comments, loadMore) => { loadMore({ limit: 10, cursor: comments[comments.length - 1].created_at, - asset_id, + assetId, sort: 'REVERSE_CHRONOLOGICAL' }); }; -const LoadMore = ({asset_id, comments, loadMore, moreComments}) => ( +const LoadMore = ({assetId, comments, loadMore, moreComments}) => ( moreComments ?