diff --git a/views/profile.pug b/views/profile.pug index c7c8100..525af60 100644 --- a/views/profile.pug +++ b/views/profile.pug @@ -51,7 +51,8 @@ block extra_scripts } if (prefs[i].type === 'email'){ if (prefs[i].value!=="" && isValidEmail(prefs[i].value)===false){ - alert(`Please input valid email for the ${prefs[i].name}`); + alert(`Please input valid email.`); + return; } data[prefs[i].id]=prefs[i].value; }