diff --git a/packages/widget/src/components/Routes/RoutesExpanded.tsx b/packages/widget/src/components/Routes/RoutesExpanded.tsx index 46d7f1bd3..a026a33c3 100644 --- a/packages/widget/src/components/Routes/RoutesExpanded.tsx +++ b/packages/widget/src/components/Routes/RoutesExpanded.tsx @@ -35,12 +35,13 @@ const routes: RouteObject[] = [ ]; export const RoutesExpanded = () => { - const match = useDOMRoutes(routes); + const element = useDOMRoutes(routes); + const match = Boolean(element?.props?.children); return ( - - + +