From ae2446f42f97d7d64c934d49321a26b67ad58e74 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Tue, 12 Mar 2024 20:06:25 +0530 Subject: [PATCH] fix: pending payment in mobile (#14011) * fix: pending payment in mobile * fix: pending paymeny badge --------- Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> --- apps/web/components/booking/BookingListItem.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index 8f382b8bc9..19ca1c8675 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -297,6 +297,8 @@ function BookingListItem(booking: BookingItemProps) { }, ]; + const showPendingPayment = paymentAppData.enabled && booking.payment.length && !booking.paid; + return ( <> )} - {!!booking?.eventType?.price && !booking.paid && ( + {showPendingPayment && ( {t("pending_payment")} @@ -490,8 +492,8 @@ function BookingListItem(booking: BookingItemProps) { {title} - {paymentAppData.enabled && !booking.paid && booking.payment.length && ( - + {showPendingPayment && ( + {t("pending_payment")} )}