From c6c3c66fc4cc632d5f6c5fbf38cd11ebaeb6fce9 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 10 Aug 2020 14:57:54 +0200 Subject: [PATCH] Clear error when submitting connect form --- components/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/app.js b/components/app.js index 31529e0..74b73cb 100644 --- a/components/app.js +++ b/components/app.js @@ -560,6 +560,8 @@ export default class App extends Component { } handleConnectSubmit(connectParams) { + this.setState({ error: null }); + if (window.localStorage) { if (connectParams.autoconnect) { localStorage.setItem("autoconnect", JSON.stringify(connectParams));