Skip to content

Commit

Permalink
Remove unused param from getSelectedDate() (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
peacechen committed Jul 12, 2021
1 parent 8a32fc4 commit 31ebd4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CalendarStrip.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ class CalendarStrip extends Component {
{
// Protect against undefined startingDate prop
let _startingDate = this.props.startingDate || this.state.startingDate;

startingDate = { startingDate: this.setLocale(_startingDate)};
selectedDate = { selectedDate: this.setLocale(this.props.selectedDate)};
days = this.createDays(startingDate.startingDate, selectedDate.selectedDate);
Expand Down Expand Up @@ -312,7 +312,7 @@ class CalendarStrip extends Component {
}

// Get the currently selected date (Moment JS object)
getSelectedDate = date => {
getSelectedDate = () => {
if (!this.state.selectedDate || this.state.selectedDate.valueOf() === 0) {
return; // undefined (no date has been selected yet)
}
Expand Down

0 comments on commit 31ebd4c

Please sign in to comment.