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:
parent
f6c54453c7
commit
cf2f12e046
1 changed files with 3 additions and 3 deletions
|
@ -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';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue