Skip to content

Commit

Permalink
- remove negation on canNext and canPrevious (#2904)
Browse files Browse the repository at this point in the history
  • Loading branch information
efalayi authored and brent-hoover committed Sep 20, 2017
1 parent 286d1e6 commit a2ff998
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class SortableTablePagination extends Component {
<div className="-previous">
<PreviousComponent
onClick={(e) => { // eslint-disable-line no-unused-vars
if (!canPrevious) {
if (canPrevious) {
return this.changePage(page - 1);
}
}}
Expand All @@ -127,7 +127,7 @@ class SortableTablePagination extends Component {
<div className="-next">
<NextComponent
onClick={(e) => { // eslint-disable-line no-unused-vars
if (!canNext) {
if (canNext) {
return this.changePage(page + 1);
}
}}
Expand Down

0 comments on commit a2ff998

Please sign in to comment.