From 5a84adcd8acad3d2d9aa826391f56418ece9498f Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Tue, 7 Jun 2022 17:10:30 +0100 Subject: [PATCH] Fixes 0 issue by boolean cast (#3004) --- apps/web/components/booking/AvailableTimes.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/components/booking/AvailableTimes.tsx b/apps/web/components/booking/AvailableTimes.tsx index 855e49a038..94dd1c9789 100644 --- a/apps/web/components/booking/AvailableTimes.tsx +++ b/apps/web/components/booking/AvailableTimes.tsx @@ -122,7 +122,7 @@ const AvailableTimes: FC = ({ brand === "#fff" || brand === "#ffffff" ? "border-brandcontrast" : "border-brand" )}> {slot.time.format(timeFormat)} - {seatsPerTimeSlot &&

{t("booking_full")}

} + {!!seatsPerTimeSlot &&

{t("booking_full")}

} ) : ( @@ -133,7 +133,7 @@ const AvailableTimes: FC = ({ )} data-testid="time"> {dayjs.tz(slot.time, timeZone()).format(timeFormat)} - {seatsPerTimeSlot && ( + {!!seatsPerTimeSlot && (

= 0.8