Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
Fix Load more button on List page
Browse files Browse the repository at this point in the history
  • Loading branch information
voidxnull committed Nov 23, 2016
1 parent 93669c4 commit 07d8721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class List extends React.Component {

componentWillReceiveProps(nextProps) {
let displayLoadMore = false;
if (nextProps.river.length > 4) {
if (nextProps.river.size > 4) {
displayLoadMore = true;
}

Expand Down Expand Up @@ -181,7 +181,7 @@ export class List extends React.Component {
<div className="layout layout-align_center layout__space layout__space-double">
<VisibilitySensor onChange={this.loadMore}>
<Button
title="Load more..." waiting={ui.getIn('progress', 'loadRiverInProgress')}
title="Load more..." waiting={ui.getIn(['progress', 'loadRiverInProgress'])}
onClick={this.loadPostRiverManually}
/>
</VisibilitySensor>
Expand Down

0 comments on commit 07d8721

Please sign in to comment.