Bugfix/opt in booking shown on attendee booking page (#2026)
This commit is contained in:
parent
6687544e66
commit
b77923fc65
2 changed files with 8 additions and 1 deletions
|
@ -170,7 +170,9 @@ function BookingListItem(booking: BookingItem) {
|
|||
<td className="whitespace-nowrap py-4 text-right text-sm font-medium ltr:pr-4 rtl:pl-4">
|
||||
{isUpcoming && !isCancelled ? (
|
||||
<>
|
||||
{!booking.confirmed && !booking.rejected && <TableActions actions={pendingActions} />}
|
||||
{!booking.confirmed && !booking.rejected && user!.id === booking.user!.id && (
|
||||
<TableActions actions={pendingActions} />
|
||||
)}
|
||||
{booking.confirmed && !booking.rejected && <TableActions actions={bookedActions} />}
|
||||
{!booking.confirmed && booking.rejected && (
|
||||
<div className="text-sm text-gray-500">{t("rejected")}</div>
|
||||
|
|
|
@ -386,6 +386,11 @@ const loggedInViewerRouter = createProtectedRouter()
|
|||
},
|
||||
status: true,
|
||||
paid: true,
|
||||
user: {
|
||||
select: {
|
||||
id: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
orderBy,
|
||||
take: take + 1,
|
||||
|
|
Loading…
Reference in a new issue