diff --git a/frontend/.env.production b/frontend/.env.production index 91f6892..03fa50e 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1,2 +1,2 @@ VITE_BACKEND_HTTP_URL=https://deposit.dev.golem.network/api -VITE_BACKEND_WS_URL=wss://deposit.dev.golem.network/socket_api +VITE_BACKEND_WS_URL=wss://deposit.dev.golem.network diff --git a/frontend/src/hooks/userUserData.ts b/frontend/src/hooks/userUserData.ts index f87df04..09ed5cb 100644 --- a/frontend/src/hooks/userUserData.ts +++ b/frontend/src/hooks/userUserData.ts @@ -21,10 +21,13 @@ export const useUserData = () => { const { data, error } = useSWRSubscription("userData", (key, { next }) => { socket.on("user", (data: any) => { + console.log("user", data); setIsLoading(false); next(null, data); }); - + socket.on("error", (error: any) => { + console.error("error is socket io ", error); + }); return () => { socket.disconnect(); };