From 6d413f5721f44e9388695f71ae5cbf82632b17ad Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Wed, 12 Jul 2023 14:17:30 +0200 Subject: [PATCH] fix: ternary operator with lenght causing 0 (#10090) --- apps/web/pages/event-types/[type]/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/event-types/[type]/index.tsx b/apps/web/pages/event-types/[type]/index.tsx index 0f846d1f1b..5c0ecd5243 100644 --- a/apps/web/pages/event-types/[type]/index.tsx +++ b/apps/web/pages/event-types/[type]/index.tsx @@ -503,7 +503,7 @@ const EventTypePage = (props: EventTypeSetupProps) => { - {slugExistsChildrenDialogOpen.length && ( + {slugExistsChildrenDialogOpen.length ? ( { setSlugExistsChildrenDialogOpen([]); }} /> - )} + ) : null} ); };