fix: a.trim is not a function type error (#22728)

This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-07-25 04:32:24 +00:00
1 parent cc6beedfb0
commit 000324c02d
1 file changed
+3 -1
@@ -347,7 +347,9 @@ function BookingListItem(booking: BookingItemProps) {
const title = booking.title;
const isCalVideoLocation =
!booking.location || booking.location === "integrations:daily" || booking?.location?.trim() === "";
!booking.location ||
booking.location === "integrations:daily" ||
(typeof booking.location === "string" && booking.location.trim() === "");
const showPendingPayment = paymentAppData.enabled && booking.payment.length && !booking.paid;