Explorar o código

fix: websocket

Lind %!s(int64=4) %!d(string=hai) anos
pai
achega
d7c766d26b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/hooks/websocket/useWebSocket.ts

+ 1 - 1
src/hooks/websocket/useWebSocket.ts

@@ -84,7 +84,7 @@ export default function useWebSocket(socketUrl: string, options: Options = {}):
         };
         Store.set(SystemConst.GLOBAL_WEBSOCKET, websocketRef.current);
       } catch (error) {
-        throw new Error(error);
+        throw new Error(error as string);
       }
     }
   });