Skip to content

Commit

Permalink
removes incorrect check for empty name
Browse files Browse the repository at this point in the history
  • Loading branch information
rdjuric committed Jun 30, 2021
1 parent c555295 commit 6440802
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 6440802

Please sign in to comment.