Skip to content

Commit

Permalink
Removed unnecesary delete
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Jun 11, 2024
1 parent 9f89942 commit ffe97ba
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions web/src/components/users/FirstUserForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ export default function FirstUserForm() {
delete user.passwordConfirmation;
}

// Preserve current password value if the user was not editing it.
if (state.isEditing && user.password === "") delete user.password;
delete user.passwordConfirmation;
user.autologin = !!user.autologin;

if (!passwordInput?.validity.valid) {
Expand Down

0 comments on commit ffe97ba

Please sign in to comment.