mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-13 17:02:02 +03:00
Return early after cancelled mxid dialog
This commit is contained in:
parent
8774100508
commit
6dff4a4415
1 changed files with 1 additions and 0 deletions
|
@ -778,6 +778,7 @@ module.exports = React.createClass({
|
||||||
onFinished: (submitted, credentials) => {
|
onFinished: (submitted, credentials) => {
|
||||||
if (!submitted) {
|
if (!submitted) {
|
||||||
mxIdPromise.reject();
|
mxIdPromise.reject();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
this.props.onRegistered(credentials);
|
this.props.onRegistered(credentials);
|
||||||
mxIdPromise.resolve();
|
mxIdPromise.resolve();
|
||||||
|
|
Loading…
Reference in a new issue