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

This commit is contained in:
GitStart 2022-06-15 15:51:53 +03:00 committed by GitHub
parent ecea455b7f
commit 8cfc91df95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -420,6 +420,7 @@ 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">
@ -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,