Skip to content

Scheduling infrastructure for absolutely everyone.

fix: type error (#22780)

Anik Dhabal Babu3b823670eadc
diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx
index 01c0264e88e..f172d15721a 100644
--- a/apps/web/components/booking/BookingListItem.tsx
+++ b/apps/web/components/booking/BookingListItem.tsx
@@ -515,7 +515,9 @@ function BookingListItem(booking: BookingItemProps) {
</div>
{!isPending && (
<div>
- {(provider?.label || locationToDisplay?.startsWith("https://")) &&
+ {(provider?.label ||
+ (typeof locationToDisplay === "string" &&
+ locationToDisplay?.startsWith("https://"))) &&
locationToDisplay.startsWith("http") && (
<a
href={locationToDisplay}