Skip to content

fix: Provide event rescheduling option before the event end time #15150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 28, 2024
2 changes: 2 additions & 0 deletions apps/web/modules/bookings/views/bookings-single-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ export default function Success(props: PageProps) {

const providerName = guessEventLocationType(location)?.label;
const rescheduleProviderName = guessEventLocationType(rescheduleLocation)?.label;
const isBookingInPast = new Date(bookingInfo.endTime) < new Date();

const bookingCancelledEventProps = {
booking: bookingInfo,
Expand Down Expand Up @@ -651,6 +652,7 @@ export default function Success(props: PageProps) {
{!requiresLoginToUpdate &&
(!needsConfirmation || !userIsOwner) &&
!isCancelled &&
!isBookingInPast &&
(!isCancellationMode ? (
<>
<hr className="border-subtle mb-8" />
Expand Down
Loading