From dd94653a489efca80025c05d35a37bd884d078c0 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Tue, 30 May 2023 08:59:28 +0530 Subject: [PATCH] fix: confirm button not displayed (#9181) * fix: confirm button not displayed Signed-off-by: Udit Takkar * fix: use paymentAppData Signed-off-by: Udit Takkar --------- Signed-off-by: Udit Takkar Co-authored-by: Peer Richelsen --- apps/web/components/booking/BookingListItem.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index 3dc01a2dcb..d15741b516 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -123,7 +123,8 @@ function BookingListItem(booking: BookingItemProps) { disabled: mutation.isLoading, }, // For bookings with payment, only confirm if the booking is paid for - ...((isPending && !booking?.eventType?.price) || (!!booking?.eventType?.price && booking.paid) + ...((isPending && !paymentAppData.enabled) || + (paymentAppData.enabled && !!paymentAppData.price && booking.paid) ? [ { id: "confirm",