Skip to content

Commit

Permalink
chore: also empty error when closing the modal
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshusinghs committed Dec 11, 2023
1 parent 1a3145b commit 800544c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/views/webview-app/use-connection-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export default function useConnectionForm() {
connectionFormOpened,
connectionErrorMessage,
openConnectionForm: () => setConnectionFormOpened(true),
closeConnectionForm: () => setConnectionFormOpened(false),
closeConnectionForm: () => {
setConnectionFormOpened(false);
setConnectionErrorMessage('');
},
handleConnectClicked: (connectionInfo: ConnectionInfo) => {
const nextAttemptId = uuidv4();
setConnectionAttemptId(nextAttemptId);
Expand Down

0 comments on commit 800544c

Please sign in to comment.