clear error on panel switch

This commit is contained in:
or-else
2018-03-23 16:50:04 -07:00
parent 1e69fabe2c
commit 67c5cbf77f
+3 -3
View File
@@ -3839,9 +3839,9 @@
// User clicked Cancel button in Setting or Sign Up panel. // User clicked Cancel button in Setting or Sign Up panel.
handleSidepanelCancel: function() { handleSidepanelCancel: function() {
if (this.state.myUserId) { if (this.state.myUserId) {
this.setState({sidePanelSelected: 'contacts'}); this.setState({sidePanelSelected: 'contacts', errorText: '', errorLevel: null});
} else { } else {
this.setState({sidePanelSelected: 'login'}); this.setState({sidePanelSelected: 'login', errorText: '', errorLevel: null});
} }
}, },
// User clicked a (+) menu item. // User clicked a (+) menu item.
@@ -4009,7 +4009,7 @@
}, },
handleValidateCredentialsRequest: function(cred, code) { handleValidateCredentialsRequest: function(cred, code) {
this.doLogin(null, null, {type: cred, resp: code}); this.doLogin(null, null, {meth: cred, resp: code});
}, },
render: function() { render: function() {