Return early after cancelled mxid dialog

pull/21833/head
Luke Barnard 2017-04-28 13:28:34 +01:00
parent 8774100508
commit 6dff4a4415
1 changed files with 1 additions and 0 deletions

View File

@ -778,6 +778,7 @@ module.exports = React.createClass({
onFinished: (submitted, credentials) => {
if (!submitted) {
mxIdPromise.reject();
return;
}
this.props.onRegistered(credentials);
mxIdPromise.resolve();