Another unmounted guard

pull/21833/head
David Baker 2017-03-22 16:42:44 +00:00
parent b58d8bffe1
commit d5272149f6
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ export default WithMatrixClient(React.createClass({
this._addThreepid = null;
return;
}
if (this._unmounted) return;
this.setState({msisdn_add_pending: true});
this._addThreepid.haveMsisdnToken(token).then(() => {
this._addThreepid = null;