Skip to content

Commit f796dea

Browse files
rickypratpolonel
authored andcommitted
fix validation
user can update account without changing the password
1 parent 109d61d commit f796dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/containers/Modals/EditAccountModal.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ class EditAccountModal extends React.Component {
123123
groups: !this.isAgentRole && this.groupSelect ? this.groupSelect.getSelected() : undefined,
124124
teams: this.isAgentRole && this.teamsSelect ? this.teamsSelect.getSelected() : undefined,
125125
role: this.selectedRole,
126-
password: this.password.length > 3 ? this.password : undefined,
127-
passwordConfirm: this.confirmPassword.length > 3 ? this.confirmPassword : undefined
126+
password: this.password.length > 0 ? this.password : undefined,
127+
passwordConfirm: this.confirmPassword.length > 0 ? this.confirmPassword : undefined
128128
}
129129

130130
this.props.saveEditAccount(data)

0 commit comments

Comments
 (0)