Web: Components: renamed date-picker the same function

This commit is contained in:
Nikita Gopienko 2019-09-18 13:23:03 +03:00
parent 5ae2aa1da2
commit e4b209f504

View File

@ -57,7 +57,7 @@ class DatePicker extends Component {
if (
!isNaN(date) &&
this.compareDates(date) &&
this.compareDate(date) &&
targetValue.indexOf("_") === -1
) {
//console.log("Mask complete");
@ -94,7 +94,7 @@ class DatePicker extends Component {
}
};
compareDates = date => {
compareDate = date => {
const { minDate, maxDate } = this.props;
if (date < minDate || date > maxDate) {
return false;