feat: prevent rescheduling past bookings (#18003)

* feat: prevent rescheduling past bookings

* hide reschedule option on frontend

* fix

* addd null check for booking.endTime

---------

Co-authored-by: Prashant Varma <[email protected]>
This commit is contained in:
Kartik SainiandPrashant Varma authored and GitHub committed 2024-12-05 16:36:00 +01:00
1 parent 5d88858995
commit e2de28b933
3 files changed
+44 -30

No files matched your search

@@ -729,7 +729,7 @@ export default function Success(props: PageProps) {
</span>
<>
{!props.recurringBookings && (
{!props.recurringBookings && !isBookingInPast && (
<span className="text-default inline">
<span className="underline" data-testid="reschedule-link">
<Link