diff --git a/apps/dispatch/app/_components/QueryProvider.tsx b/apps/dispatch/app/_components/QueryProvider.tsx index 754fea34..2e222dba 100644 --- a/apps/dispatch/app/_components/QueryProvider.tsx +++ b/apps/dispatch/app/_components/QueryProvider.tsx @@ -96,6 +96,7 @@ export function QueryProvider({ children }: { children: ReactNode }) { dispatchSocket.off("pilots-update", invalidateConnectedUsers); dispatchSocket.off("update-connectedAircraft", invalidateConenctedAircrafts); dispatchSocket.off("notification", handleNotification); + pilotSocket.off("notification", handleNotification); }; }, [queryClient, mapStore]);