some cleanup
This commit is contained in:
@@ -18,6 +18,7 @@ export function SocketProvider({ children }: { children: React.ReactNode }) {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!jwtToken) {
|
if (!jwtToken) {
|
||||||
|
set$ws(undefined);
|
||||||
toast.error('no jwt token!!!');
|
toast.error('no jwt token!!!');
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@@ -39,8 +40,6 @@ export function SocketProvider({ children }: { children: React.ReactNode }) {
|
|||||||
console.error(
|
console.error(
|
||||||
'SOCKET | there was a problem with your app...connection closed likely due to idling or manual disconnect',
|
'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
|
// client-side errors
|
||||||
|
|||||||
Reference in New Issue
Block a user