1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

Another unmounted guard

This commit is contained in:
David Baker
2017-03-22 16:42:44 +00:00
parent b58d8bffe1
commit d5272149f6

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;