Update web/src/components/Calendar.jsx

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
Sergey Krashevich 2023-08-03 16:21:50 +03:00 committed by GitHub
parent 0a1024983d
commit 3adb015726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ const Calendar = ({ onChange, calendarRef, close, dateRange, children }) => {
setState((prev) => ({ setState((prev) => ({
...prev, ...prev,
selectedDay: todayTimestamp, selectedDay: todayTimestamp,
monthDetails: getMonthDetails(year, month) monthDetails: getMonthDetails(year, month),
})); }));
}, [year, month, getMonthDetails]); }, [year, month, getMonthDetails]);