Clear error alerts in change email modal on success (#2467)

This commit is contained in:
Mohammad Reza 2020-11-27 02:23:38 +03:30 committed by GitHub
parent 286d8dec5b
commit 277a5c3fac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,10 @@ export default class ChangeEmailModal extends Modal {
meta: { password: this.password() },
}
)
.then(() => (this.success = true))
.then(() => {
this.success = true;
this.alertAttrs = null;
})
.catch(() => {})
.then(this.loaded.bind(this));
}