Skip to content

Scheduling infrastructure for absolutely everyone.

Revert "The booker get’s the Ui option to reschedule but can’t reschedule (#3061)"

zomars833adaf7e9e3
diff --git a/apps/web/pages/success.tsx b/apps/web/pages/success.tsx
index 4d43a5e3d25..e729116c6d9 100644
--- a/apps/web/pages/success.tsx
+++ b/apps/web/pages/success.tsx
@@ -420,7 +420,6 @@ export default function Success(props: SuccessProps) {
</div>
{!needsConfirmation &&
!isCancelled &&
- bookingInfo &&
(!isCancellationMode ? (
<div className="border-bookinglightest text-bookingdark mt-2 grid grid-cols-3 border-b py-4 text-left dark:border-gray-900">
<span className="flex self-center font-medium text-gray-700 ltr:mr-2 rtl:ml-2 dark:text-gray-50">
@@ -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,