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