some cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user