diff --git a/packages/pl-fe/src/features/ui/router.tsx b/packages/pl-fe/src/features/ui/router.tsx index 5054e6731..bb9410d35 100644 --- a/packages/pl-fe/src/features/ui/router.tsx +++ b/packages/pl-fe/src/features/ui/router.tsx @@ -185,7 +185,7 @@ const layouts = { id: 'chats-layout', component: ChatsLayout, beforeLoad: requireAuthMiddleware(({ context: { features } }) => { - if (!features.events) throw notFound(); + if (!features.chats) throw notFound(); }), }), default: createRoute({