Fixes 3 issues related to 404 links (#2979)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2022-06-06 11:40:56 +02:00
1 parent dd09854932
commit 03e787ad5a
4 files changed
+34 -9

No files matched your search

@@ -204,7 +204,8 @@ function BookingListItem(booking: BookingItemProps) {
pathname: "/success",
query: {
date: booking.startTime,
type: booking.eventType.id,
// TODO: Booking when fetched should have id 0 already(for Dynamic Events).
type: booking.eventType.id || 0,
eventSlug: booking.eventType.slug,
user: user?.username || "",
name: booking.attendees[0] ? booking.attendees[0].name : undefined,