Skip to content

Commit

Permalink
portalicious: fix users form (#5918)
Browse files Browse the repository at this point in the history
AB#30957

Must've slipped through the cracks with the renaming of the fields
  • Loading branch information
aberonni authored Oct 11, 2024
1 parent a721703 commit 713a20e
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,21 +111,21 @@ export class AddUserFormComponent {

userMutation = injectMutation(() => ({
mutationFn: ({
displayNameValue,
usernameValue,
emailValue,
}: {
displayNameValue: string;
usernameValue: string;
emailValue: string;
}) => {
if (this.isEditing()) {
return this.userApiService.udpateUserDisplayName({
id: this.userToEdit()?.id,
displayName: usernameValue,
displayName: displayNameValue,
});
}
return this.userApiService.createUser({
username: emailValue,
displayName: usernameValue,
username: usernameValue,
displayName: displayNameValue,
});
},
onSuccess: () => {
Expand Down

0 comments on commit 713a20e

Please sign in to comment.