diff --git a/src/App.tsx b/src/App.tsx index d96c724..b92ab51 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -88,6 +88,7 @@ function App() { }; const handleConnect = () => { + dispatch(setConnectionState('connected')); setView(View.CONNECTED); }; diff --git a/src/components/connectOverlay/ConnectOverlay.tsx b/src/components/connectOverlay/ConnectOverlay.tsx index 840984f..5697a5d 100644 --- a/src/components/connectOverlay/ConnectOverlay.tsx +++ b/src/components/connectOverlay/ConnectOverlay.tsx @@ -121,7 +121,6 @@ const ConnectOverlay: React.FC = ({ } ); if (statusResponse.data.connected) { - dispatch(setConnectionState('connected')); onConnect(); } else { console.log('Not Connected, checking again...');