Skip to content

Commit

Permalink
revert unecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
kangzj committed Sep 20, 2024
1 parent 9d4e643 commit e3bf04e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/components/date-range/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,14 +399,14 @@ export class DateRange extends Component {
return window.matchMedia( '(min-width: 520px)' ).matches ? 2 : 1;
}

handleDateRangeChange = ( startDate, endDate, dateClicked ) => {
handleDateRangeChange = ( startDate, endDate ) => {
this.setState( {
startDate,
endDate,
textInputStartDate: this.toDateString( startDate ),
textInputEndDate: this.toDateString( endDate ),
} );
this.props.onDateSelect && this.props.onDateSelect( dateClicked );
this.props.onDateSelect && this.props.onDateSelect( startDate, endDate );
};

/**
Expand Down

0 comments on commit e3bf04e

Please sign in to comment.