From 6440802a7fc75658497549f20eb2194e859aed42 Mon Sep 17 00:00:00 2001 From: Rafael Date: Wed, 30 Jun 2021 11:11:01 -0300 Subject: [PATCH] removes incorrect check for empty name --- src/libs/actions/PersonalDetails.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libs/actions/PersonalDetails.js b/src/libs/actions/PersonalDetails.js index e65ab69507f8..c57b81e95c04 100644 --- a/src/libs/actions/PersonalDetails.js +++ b/src/libs/actions/PersonalDetails.js @@ -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);