remove cancel button for unconfirmed past bookings (#6142)

Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
Mohammed CherfaouiandAlex van Andel authored and GitHub committed 2022-12-21 13:43:31 +00:00
1 parent 15cdff76d9
commit 1a45cb35c1
1 file changed
+4
@@ -158,6 +158,10 @@ function BookingListItem(booking: BookingItemProps) {
bookedActions = bookedActions.filter((action) => action.id !== "edit_booking");
}
if (isPast && isPending && !isConfirmed) {
bookedActions = bookedActions.filter((action) => action.id !== "cancel");
}
const RequestSentMessage = () => {
return (
<div className="ml-1 mr-8 flex text-gray-500" data-testid="request_reschedule_sent">