From ac34b15696f8789928d299edb58a0a7f4b76c779 Mon Sep 17 00:00:00 2001 From: Francois Laithier Date: Tue, 12 Sep 2023 09:39:30 -0700 Subject: [PATCH] Merge pull request #27256 from thiagobrez/thiagobrez/pronouns-deselect (cherry picked from commit cfcfd8252e25798851fe97e60928ce66d91ae26f) --- src/pages/settings/Profile/PronounsPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/Profile/PronounsPage.js b/src/pages/settings/Profile/PronounsPage.js index 4fa97a74d061..a77107c248bc 100644 --- a/src/pages/settings/Profile/PronounsPage.js +++ b/src/pages/settings/Profile/PronounsPage.js @@ -61,7 +61,7 @@ function PronounsPage({currentUserPersonalDetails}) { const headerMessage = searchValue.trim() && filteredPronounsList.length === 0 ? translate('common.noResultsFound') : ''; const updatePronouns = (selectedPronouns) => { - PersonalDetails.updatePronouns(selectedPronouns.keyForList === currentPronouns.keyForList ? '' : lodashGet(selectedPronouns, 'value', '')); + PersonalDetails.updatePronouns(selectedPronouns.keyForList === currentPronounsKey ? '' : lodashGet(selectedPronouns, 'value', '')); }; return (