fix: SW-710 Updated max allowed booking dates as today

This commit is contained in:
Hrishikesh Vaipurkar
2024-11-05 14:29:09 +01:00
parent 3a8137bd3c
commit e72d54d1a0
3 changed files with 14 additions and 10 deletions

View File

@@ -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) {