From 52e318ca1867cdfdf2a1103affed7088bc1adc83 Mon Sep 17 00:00:00 2001 From: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com> Date: Sat, 21 Jan 2023 00:57:58 +0530 Subject: [PATCH] fix: show button on empty string (#6601) Signed-off-by: Udit Takkar Signed-off-by: Udit Takkar --- apps/web/components/booking/BookingListItem.tsx | 3 ++- packages/features/ee/video/ViewRecordingsDialog.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/web/components/booking/BookingListItem.tsx b/apps/web/components/booking/BookingListItem.tsx index 679b87b086..917118d645 100644 --- a/apps/web/components/booking/BookingListItem.tsx +++ b/apps/web/components/booking/BookingListItem.tsx @@ -220,7 +220,8 @@ function BookingListItem(booking: BookingItemProps) { }, }); }; - const showRecordingsButtons = booking.location === "integrations:daily" && isPast && isConfirmed; + const showRecordingsButtons = + (booking.location === "integrations:daily" || booking?.location?.trim() === "") && isPast && isConfirmed; return ( <> { <> - {isLoading && isLoadingHasTeamPlan && } + {(isLoading || isLoadingHasTeamPlan) && } {recordings && "data" in recordings && recordings?.data?.length > 0 && (
{recordings.data.map((recording: RecordingItemSchema, index: number) => {