1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-18 09:22:18 +03:00

s/.done(/.then(/ since modern es6 track unhandled promise exceptions

This commit is contained in:
Michael Telatynski
2019-11-12 11:51:23 +00:00
parent 0a21957b2c
commit 09a8fec261
43 changed files with 74 additions and 72 deletions

View File

@ -105,7 +105,7 @@ module.exports = createReactClass({
phase: PHASE_SENDING_EMAIL,
});
this.reset = new PasswordReset(this.props.serverConfig.hsUrl, this.props.serverConfig.isUrl);
this.reset.resetPassword(email, password).done(() => {
this.reset.resetPassword(email, password).then(() => {
this.setState({
phase: PHASE_EMAIL_SENT,
});