You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Return early after cancelled mxid dialog
This commit is contained in:
@@ -778,6 +778,7 @@ module.exports = React.createClass({
|
||||
onFinished: (submitted, credentials) => {
|
||||
if (!submitted) {
|
||||
mxIdPromise.reject();
|
||||
return;
|
||||
}
|
||||
this.props.onRegistered(credentials);
|
||||
mxIdPromise.resolve();
|
||||
|
||||
Reference in New Issue
Block a user