Skip to content

Commit

Permalink
Merge pull request #5 from softstack/improvements
Browse files Browse the repository at this point in the history
refactor: Update ConnectOverlay component to use button element for d…
  • Loading branch information
daniel-vahn authored May 27, 2024
2 parents 0f8cf19 + 9a79f46 commit 812001d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function App() {
};

const handleConnect = () => {
dispatch(setConnectionState('connected'));
setView(View.CONNECTED);
};

Expand Down
1 change: 0 additions & 1 deletion src/components/connectOverlay/ConnectOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ const ConnectOverlay: React.FC<Props> = ({
}
);
if (statusResponse.data.connected) {
dispatch(setConnectionState('connected'));
onConnect();
} else {
console.log('Not Connected, checking again...');
Expand Down

0 comments on commit 812001d

Please sign in to comment.