diff --git a/apps/web/pages/success.tsx b/apps/web/pages/success.tsx index 4d43a5e3d2..e729116c6d 100644 --- a/apps/web/pages/success.tsx +++ b/apps/web/pages/success.tsx @@ -420,7 +420,6 @@ export default function Success(props: SuccessProps) { {!needsConfirmation && !isCancelled && - bookingInfo && (!isCancellationMode ? (
@@ -848,9 +847,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) { } const bookingInfo = await prisma.booking.findFirst({ - where: { - id: bookingId, - }, + where, select: { title: true, uid: true,