Clear error when submitting connect form

This commit is contained in:
Simon Ser 2020-08-10 14:57:54 +02:00
parent 16582a6592
commit c6c3c66fc4
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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));