diff --git a/app/components/ChatMenu/ChatMenu.tsx b/app/components/ChatMenu/ChatMenu.tsx index 5affce7..779bad5 100644 --- a/app/components/ChatMenu/ChatMenu.tsx +++ b/app/components/ChatMenu/ChatMenu.tsx @@ -142,10 +142,7 @@ const ChatMenu = () => { options={{ title: '', headerLeft: () => headerViewLeft, - - headerRight: () => { - if (chat) return headerViewRight - }, + ...(chat ? { headerRight: () => headerViewRight } : {}), }} />