diff --git a/apps/web/pages/booking/[uid].tsx b/apps/web/pages/booking/[uid].tsx index 0bef2cc3fc..a1415705b6 100644 --- a/apps/web/pages/booking/[uid].tsx +++ b/apps/web/pages/booking/[uid].tsx @@ -185,7 +185,7 @@ export default function Success(props: SuccessProps) { // - It's a paid event and payment is pending. const needsConfirmation = bookingInfo.status === BookingStatus.PENDING && eventType.requiresConfirmation; const userIsOwner = !!(session?.user?.id && eventType.owner?.id === session.user.id); - + const isLoggedIn = session?.user; const isCancelled = status === "CANCELLED" || status === "REJECTED" || @@ -310,7 +310,7 @@ export default function Success(props: SuccessProps) { status={status} /> )} - {userIsOwner && !isEmbed && ( + {isLoggedIn && !isEmbed && (