mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -05:00
Clear error when submitting connect form
This commit is contained in:
parent
16582a6592
commit
c6c3c66fc4
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue