fix: ternary operator with lenght causing 0 (#10090)

This commit is contained in:
Peer Richelsen authored and GitHub committed 2023-07-12 12:17:30 +00:00
1 parent c9fc88ddc7
commit 6d413f5721
1 file changed
+2 -2
+2 -2
View File
@@ -503,7 +503,7 @@ const EventTypePage = (props: EventTypeSetupProps) => {
</Form>
</EventTypeSingleLayout>
{slugExistsChildrenDialogOpen.length && (
{slugExistsChildrenDialogOpen.length ? (
<ManagedEventTypeDialog
slugExistsChildrenDialogOpen={slugExistsChildrenDialogOpen}
isLoading={formMethods.formState.isSubmitting}
@@ -518,7 +518,7 @@ const EventTypePage = (props: EventTypeSetupProps) => {
setSlugExistsChildrenDialogOpen([]);
}}
/>
)}
) : null}
</>
);
};