mirror of https://github.com/vector-im/riot-web
Another unmounted guard
parent
b58d8bffe1
commit
d5272149f6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue