1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00

Fixed error message substitutions for members-importer summary

This commit is contained in:
Nazar Gargol 2020-07-09 22:10:38 +12:00
parent 2a6fa60718
commit 248b9a021e

View file

@ -300,9 +300,9 @@ export default ModalComponent.extend({
if (importResponse.meta.stats.invalid && importResponse.meta.stats.invalid.errors) {
importResponse.meta.stats.invalid.errors.forEach((error) => {
if (error.message === 'Value in [members.email] cannot be blank.') {
error.message = 'Missing email address.';
} else if (error.message === 'Validation (isEmail) failed for email ') {
error.message = 'Invalid email address.';
error.message = 'Missing email address';
} else if (error.message === 'Validation (isEmail) failed for email') {
error.message = 'Invalid email address';
}
});
}