Skip to content

Scheduling infrastructure for absolutely everyone.

fix type error (#22710)

Anik Dhabal Babu3ab676794fcf
diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx
index da1d1fc2372..88848cc3023 100644
--- a/apps/web/components/booking/BookingListItem.tsx
+++ b/apps/web/components/booking/BookingListItem.tsx
@@ -245,7 +245,9 @@ function BookingListItem(booking: BookingItemProps) {
isDisabledCancelling,
isDisabledRescheduling,
isCalVideoLocation:
- !booking.location || booking.location === "integrations:daily" || booking?.location?.trim() === "",
+ !booking.location ||
+ booking.location === "integrations:daily" ||
+ (typeof booking.location === "string" && booking.location.trim() === ""),
showPendingPayment: paymentAppData.enabled && booking.payment.length && !booking.paid,
cardCharged,
attendeeList,