mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:50:24 +08:00
Properly handle errors in change email modal
This commit is contained in:
parent
b39a991940
commit
6463d912a9
@ -89,8 +89,9 @@ export default class ChangeEmailModal extends Modal {
|
||||
this.success = true;
|
||||
m.redraw();
|
||||
},
|
||||
() => {
|
||||
response => {
|
||||
this.loading = false;
|
||||
this.handleErrors(response);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user