Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Commit

Permalink
Fix #75
Browse files Browse the repository at this point in the history
  • Loading branch information
darenju authored Oct 29, 2018
1 parent 44c27e8 commit 0114953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class FlipPage extends Component {
}

gotoPage(page) {
if (page > 0 && page < this.props.children.length) {
if (page >= 0 && page < this.props.children.length) {
this.setState({ page });
} else {
throw new RangeError('`page` argument is out of bounds.');
Expand Down

0 comments on commit 0114953

Please sign in to comment.