Skip to content

Scheduling infrastructure for absolutely everyone.

Fixed booking page not rendering due to missing linked event type (#654)

Alex van Andel9980dcad6ba6
diff --git a/pages/bookings/index.tsx b/pages/bookings/index.tsx
index 58daef56b4b..c0c50d22dc4 100644
--- a/pages/bookings/index.tsx
+++ b/pages/bookings/index.tsx
@@ -57,7 +57,7 @@ export default function Bookings({ bookings }) {
</span>
)}
<div className="text-sm text-neutral-900 font-medium truncate max-w-60 md:max-w-96">
- {booking.eventType.team && <strong>{booking.eventType.team.name}: </strong>}
+ {booking.eventType?.team && <strong>{booking.eventType.team.name}: </strong>}
{booking.title}
</div>
<div className="sm:hidden">