Skip to content

Commit

Permalink
#502 fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Eremic committed Sep 2, 2016
1 parent 0b44e33 commit 6937f42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/lib/violation/src/violation/date-dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class DateDropdown extends React.Component {
range: props.range
};

this.onUpdate = this.onUpdate.bind(this);
this.handleUpdate = this.handleUpdate.bind(this);
}

onHeaderClick() {
Expand All @@ -36,7 +36,7 @@ class DateDropdown extends React.Component {
this.setState({range});
}

onUpdate(_, range) {
handleUpdate(_, range) {
this.setState({range});
if (this.props.onUpdate && range.length > 1) {
this.props.onUpdate(range.map(r => r.dateMoment));
Expand Down Expand Up @@ -80,7 +80,7 @@ class DateDropdown extends React.Component {
range = {this.state.range}
maxDate = {maxDate}
highlightRangeOnMouseMove = {true}
onRangeChange = {this.onUpdate} />
onRangeChange = {this.handleUpdate} />
</div>
</div>
</div> :
Expand Down

0 comments on commit 6937f42

Please sign in to comment.