From 31ebd4c8250ffbd45203c0f3a2a0d283af2839f9 Mon Sep 17 00:00:00 2001 From: peacechen Date: Mon, 12 Jul 2021 10:11:05 -0500 Subject: [PATCH] Remove unused param from getSelectedDate() (#313) --- src/CalendarStrip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CalendarStrip.js b/src/CalendarStrip.js index d9ee44b..e8fde6f 100644 --- a/src/CalendarStrip.js +++ b/src/CalendarStrip.js @@ -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); @@ -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) }