0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05: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 f6c54453c7
commit cf2f12e046

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';
}
});
}