Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
showFromMonth = () => {
const { selectedStartDate, selectedEndDate } = this.state;
if (!selectedStartDate) {
return;
}
this.endDate.getDayPicker().showMonth(DateUtils.addMonths(selectedEndDate, -1));
};