Skip to content

Commit

Permalink
regression: Accounts profile form name change not working (#30239)
Browse files Browse the repository at this point in the history
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
yash-rajpal and kodiakhq[bot] committed Aug 31, 2023
1 parent 5321e87 commit 01dec05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/unlucky-turtles-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fixed Accounts profile form name change was not working
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const AccountProfileForm = (props: AllHTMLAttributes<HTMLFormElement>): ReactEle
try {
await updateOwnBasicInfo(
{
...(allowRealNameChange ? { name } : {}),
...(allowRealNameChange ? { realname: name } : {}),
...(allowEmailChange && user ? getUserEmailAddress(user) !== email && { email } : {}),
...(allowPasswordChange ? { newPassword: password } : {}),
...(canChangeUsername ? { username } : {}),
Expand Down

0 comments on commit 01dec05

Please sign in to comment.