Skip to content

Commit

Permalink
[IMPROVE] Status Text form validation (#16121)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriellsh authored and ggazzo committed Jan 8, 2020
1 parent b399a2a commit db0862e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/ui-account/client/accountProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Template.accountProfile.helpers({
return;
}
}
if (!avatar && user.name === realname && user.username === username && getUserEmailAddress(user) === email === email && (!password || password !== confirmationPassword)) {
if (!avatar && user.name === realname && user.username === username && getUserEmailAddress(user) === email && statusText === user.statusText && !password) {
return ret;
}
if (!validateEmail(email) || !validatePassword(password, confirmationPassword) || (!validateUsername(username) || usernameAvaliable !== true) || !validateName(realname) || !validateStatusMessage(statusText)) {
Expand Down

0 comments on commit db0862e

Please sign in to comment.