From fdd176644a8f663654cffa6b6a9e70658985d860 Mon Sep 17 00:00:00 2001 From: cha0s Date: Wed, 17 Apr 2019 00:50:25 -0500 Subject: [PATCH] fix: connection status --- client/ui/debug/connection/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/client/ui/debug/connection/index.js b/client/ui/debug/connection/index.js index 649034e..756ae69 100644 --- a/client/ui/debug/connection/index.js +++ b/client/ui/debug/connection/index.js @@ -42,6 +42,7 @@ const ConnectionComponent = ({ const [isConnected, setIsConnected] = useState(false); // Juggle connected state. useEffect(() => { + setIsConnected(socket.isConnected); const onConnect = () => { setIsConnected(true); };