fix: confirm button not displayed (#9181)
* fix: confirm button not displayed Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> * fix: use paymentAppData Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> --------- Signed-off-by: Udit Takkar <udit.07814802719@cse.mait.ac.in> Co-authored-by: Peer Richelsen <peeroke@gmail.com>pull/9194/head
parent
d3ed637387
commit
dd94653a48
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue