From 2696a67513ddb9f2205ad4bcd61fbf7d25fa3fd3 Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 13 May 2022 08:28:42 -0500 Subject: [PATCH] some cleanup --- packages/desktop/src/providers/SocketProvider.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/desktop/src/providers/SocketProvider.tsx b/packages/desktop/src/providers/SocketProvider.tsx index a563ab8..7508d98 100644 --- a/packages/desktop/src/providers/SocketProvider.tsx +++ b/packages/desktop/src/providers/SocketProvider.tsx @@ -18,6 +18,7 @@ export function SocketProvider({ children }: { children: React.ReactNode }) { useEffect(() => { if (!jwtToken) { + set$ws(undefined); toast.error('no jwt token!!!'); return; @@ -39,8 +40,6 @@ export function SocketProvider({ children }: { children: React.ReactNode }) { console.error( 'SOCKET | there was a problem with your app...connection closed likely due to idling or manual disconnect', ); - - toast.error('sorry...this is our bad...please refresh with cmd + r'); }); // client-side errors