Unset email pending state on error or we never remove the spinner

This commit is contained in:
David Baker 2016-03-24 15:03:44 +00:00
parent c7e2b09d8b
commit c3dd9a4b17

View file

@ -214,6 +214,7 @@ module.exports = React.createClass({
this._refreshFromServer();
this.setState({email_add_pending: false});
}, (err) => {
this.setState({email_add_pending: false});
if (err.errcode == 'M_THREEPID_AUTH_FAILED') {
var QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
var message = "Unable to verify email address. "