fix: SW-710 Updated max allowed booking dates as today
This commit is contained in:
@@ -34,7 +34,7 @@ export default function DatePickerDesktop({
|
||||
const currentDate = dt().toDate()
|
||||
const startOfMonth = dt(currentDate).set("date", 1).toDate()
|
||||
const yesterday = dt(currentDate).subtract(1, "day").toDate()
|
||||
const endDate = dt().add(365, "day").toDate()
|
||||
const endDate = dt().add(395, "day").toDate()
|
||||
const endOfLastMonth = dt(endDate).endOf("month").toDate()
|
||||
|
||||
function handleMonthChange(selected: Date) {
|
||||
|
||||
Reference in New Issue
Block a user