When using seats, other guests (name, email) are no longer always listed on the success page (#5361)
* fixed incorrect ternary operator * Update apps/web/pages/success.tsx Co-authored-by: alannnc <alannnc@gmail.com>pull/5342/head^2
parent
179a9b7139
commit
eb14c1b796
|
@ -359,29 +359,31 @@ export default function Success(props: SuccessProps) {
|
||||||
<>
|
<>
|
||||||
<div className="font-medium">{t("who")}</div>
|
<div className="font-medium">{t("who")}</div>
|
||||||
<div className="col-span-2 mb-6 last:mb-0">
|
<div className="col-span-2 mb-6 last:mb-0">
|
||||||
{bookingInfo?.user && (
|
<>
|
||||||
<div className="mb-3">
|
{bookingInfo?.user && (
|
||||||
<p>{bookingInfo.user.name}</p>
|
<div className="mb-3">
|
||||||
<p className="text-bookinglight">{bookingInfo.user.email}</p>
|
<p>{bookingInfo.user.name}</p>
|
||||||
</div>
|
<p className="text-bookinglight">{bookingInfo.user.email}</p>
|
||||||
)}
|
</div>
|
||||||
{!!eventType.seatsShowAttendees
|
)}
|
||||||
? bookingInfo?.attendees
|
{!eventType.seatsShowAttendees
|
||||||
.filter((attendee) => attendee.email === email)
|
? bookingInfo?.attendees
|
||||||
.map((attendee) => (
|
.filter((attendee) => attendee.email === email)
|
||||||
<div key={attendee.name} className="mb-3">
|
.map((attendee) => (
|
||||||
|
<div key={attendee.name} className="mb-3">
|
||||||
|
<p>{attendee.name}</p>
|
||||||
|
<p className="text-bookinglight">{attendee.email}</p>
|
||||||
|
</div>
|
||||||
|
))
|
||||||
|
: bookingInfo?.attendees.map((attendee, index) => (
|
||||||
|
<div
|
||||||
|
key={attendee.name}
|
||||||
|
className={index === bookingInfo.attendees.length - 1 ? "" : "mb-3"}>
|
||||||
<p>{attendee.name}</p>
|
<p>{attendee.name}</p>
|
||||||
<p className="text-bookinglight">{attendee.email}</p>
|
<p className="text-bookinglight">{attendee.email}</p>
|
||||||
</div>
|
</div>
|
||||||
))
|
))}
|
||||||
: bookingInfo?.attendees.map((attendee, index) => (
|
</>
|
||||||
<div
|
|
||||||
key={attendee.name}
|
|
||||||
className={index === bookingInfo.attendees.length - 1 ? "" : "mb-3"}>
|
|
||||||
<p>{attendee.name}</p>
|
|
||||||
<p className="text-bookinglight">{attendee.email}</p>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue