Skip to content

Scheduling infrastructure for absolutely everyone.

fix: cancel event button for each booking on bookings page (#23479)

沙什瓦特5f0188b03651
diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx
index b5c97a7bbb5..3bd488605fd 100644
--- a/apps/web/components/booking/BookingListItem.tsx
+++ b/apps/web/components/booking/BookingListItem.tsx
@@ -691,7 +691,7 @@ function BookingListItem(booking: BookingItemProps) {
type="button"
color={cancelEventAction.color}
StartIcon={cancelEventAction.icon}
- href={cancelEventAction.href}
+ href={cancelEventAction.disabled ? undefined : cancelEventAction.href}
onClick={cancelEventAction.onClick}
disabled={cancelEventAction.disabled}
data-bookingid={cancelEventAction.bookingId}