[Hotfix]Fixes 3 issues related to 404 links (#2977)

This commit is contained in:
Hariom Balhara authored and GitHub committed 2022-06-06 09:41:11 +00:00
1 parent b9428301b6
commit f0a5b7734f
4 files changed
+34 -9

No files matched your search

@@ -217,7 +217,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,