Skip to content

Commit

Permalink
Merge pull request #3823 from rdjuric/fixEmptyNameChange
Browse files Browse the repository at this point in the history
Fix: Deleted profile name updated only after refresh
  • Loading branch information
Jag96 authored Jul 1, 2021
2 parents 27ab3cd + 6440802 commit 72dc183
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libs/actions/PersonalDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ function mergeLocalPersonalDetails(details) {
const mergedDetails = lodashMerge(personalDetails[currentUserEmail], details);

// displayName is a generated field so we'll use the firstName and lastName + login to update it.
if (details.firstName || details.lastName) {
mergedDetails.displayName = getDisplayName(currentUserEmail, mergedDetails);
}
mergedDetails.displayName = getDisplayName(currentUserEmail, mergedDetails);

// Update the associated Onyx keys
Onyx.merge(ONYXKEYS.MY_PERSONAL_DETAILS, mergedDetails);
Expand Down

0 comments on commit 72dc183

Please sign in to comment.