@cashub/ui 0.18.5 → 0.18.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -114,11 +114,13 @@ var Month = function Month(_ref) {
|
|
|
114
114
|
return !(minDate1st <= date);
|
|
115
115
|
} else if (maxDate && !minDate) {
|
|
116
116
|
maxDate1st.setDate(1);
|
|
117
|
+
maxDate1st.setHours(23, 59, 59, 0);
|
|
117
118
|
return !(maxDate1st >= date);
|
|
118
119
|
} else if (minDate && maxDate) {
|
|
120
|
+
minDate1st.setDate(1);
|
|
119
121
|
minDate1st.setHours(0, 0, 0, 0);
|
|
120
122
|
maxDate1st.setDate(1);
|
|
121
|
-
|
|
123
|
+
maxDate1st.setHours(23, 59, 59, 0);
|
|
122
124
|
return !(minDate1st <= date && maxDate1st >= date);
|
|
123
125
|
}
|
|
124
126
|
}, [fixedYear, maxDate, minDate, selectedDate]);
|