fix: SW-710 Update comment for allowed future date

This commit is contained in:
Hrishikesh Vaipurkar
2024-11-05 15:11:50 +01:00
parent e72d54d1a0
commit 52ae49246f
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,8 @@ export default function DatePickerDesktop({
const currentDate = dt().toDate()
const startOfMonth = dt(currentDate).set("date", 1).toDate()
const yesterday = dt(currentDate).subtract(1, "day").toDate()
// Max future date allowed to book kept same as of existing prod.
const endDate = dt().add(395, "day").toDate()
const endOfLastMonth = dt(endDate).endOf("month").toDate()

View File

@@ -31,6 +31,7 @@ export default function DatePickerMobile({
const startOfCurrentMonth = dt(currentDate).set("date", 1).toDate()
const yesterday = dt(currentDate).subtract(1, "day").toDate()
// Max future date allowed to book kept same as of existing prod.
const endDate = dt().add(395, "day").toDate()
const endOfLastMonth = dt(endDate).endOf("month").toDate()
return (