Skip to content

Commit

Permalink
Fix invalid email alert message
Browse files Browse the repository at this point in the history
  • Loading branch information
ivukotic committed Mar 26, 2024
1 parent a0cc988 commit 1840378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/profile.pug
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ 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]}`);
alert(`Please input valid email for the ${prefs[i].name}`);
}
data[prefs[i].id]=prefs[i].value;
}
Expand Down

0 comments on commit 1840378

Please sign in to comment.