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