Skip to content

Commit

Permalink
fix validation
Browse files Browse the repository at this point in the history
user can update account without changing the password
  • Loading branch information
rickyprat authored and polonel committed Aug 20, 2022
1 parent 109d61d commit f796dea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/containers/Modals/EditAccountModal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ class EditAccountModal extends React.Component {
groups: !this.isAgentRole && this.groupSelect ? this.groupSelect.getSelected() : undefined,
teams: this.isAgentRole && this.teamsSelect ? this.teamsSelect.getSelected() : undefined,
role: this.selectedRole,
password: this.password.length > 3 ? this.password : undefined,
passwordConfirm: this.confirmPassword.length > 3 ? this.confirmPassword : undefined
password: this.password.length > 0 ? this.password : undefined,
passwordConfirm: this.confirmPassword.length > 0 ? this.confirmPassword : undefined
}
this.props.saveEditAccount(data)
Expand Down

0 comments on commit f796dea

Please sign in to comment.