Skip to content

Commit

Permalink
Merge pull request #14 from aktibo/master
Browse files Browse the repository at this point in the history
Fixed a extra-year bug.
  • Loading branch information
pinguinjkeke authored Mar 5, 2018
2 parents 7708399 + 44b57d6 commit 074b595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/date-picker.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default class DatePicker extends PureComponent {

this.state.yearRange.push({ value: minYear, label: `${minYear}${this.props.labelUnit.year}` });

for (let i = minYear + 1; i <= maxYear + 1; i += 1) {
for (let i = minYear + 1; i <= maxYear; i += 1) {
this.state.yearRange.push({ value: i, label: `${i}${this.props.labelUnit.year}` });
}
}
Expand Down

0 comments on commit 074b595

Please sign in to comment.