From 51b316f69c4c9ca3e50b09c67d56bb9737d5f895 Mon Sep 17 00:00:00 2001 From: Haileyesus Date: Thu, 29 Jan 2026 23:00:50 +0300 Subject: [PATCH] fix: connect() doesn't need to be async --- src/contexts/WebSocketContext.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/WebSocketContext.jsx b/src/contexts/WebSocketContext.jsx index b59e489..14782d3 100644 --- a/src/contexts/WebSocketContext.jsx +++ b/src/contexts/WebSocketContext.jsx @@ -34,7 +34,7 @@ const useWebSocketProviderState = () => { }; }, []); // Keep dependency array but add proper cleanup - const connect = async () => { + const connect = () => { try { const isPlatform = import.meta.env.VITE_IS_PLATFORM === 'true';