diff --git a/apps/dispatch/app/_components/left/Chat.tsx b/apps/dispatch/app/_components/left/Chat.tsx index 93b17997..16c340a3 100644 --- a/apps/dispatch/app/_components/left/Chat.tsx +++ b/apps/dispatch/app/_components/left/Chat.tsx @@ -56,7 +56,7 @@ export const Chat = () => { (d) => d.userId !== session.data?.user.id && !chats[d.userId], ); const filteredAircrafts = aircrafts?.filter( - (a) => a.userId !== session.data?.user.id && dispatcherConnected && chats[a.userId], + (a) => a.userId !== session.data?.user.id && dispatcherConnected && !chats[a.userId], ); const btnActive = pilotConnected || dispatcherConnected;