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

pull/21833/head
David Baker 2016-03-24 15:03:44 +00:00
parent c7e2b09d8b
commit c3dd9a4b17
1 changed files with 1 additions and 0 deletions

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. "