Skip to content

Commit

Permalink
Merge pull request #27256 from thiagobrez/thiagobrez/pronouns-deselect
Browse files Browse the repository at this point in the history
(cherry picked from commit cfcfd82)
  • Loading branch information
francoisl authored and OSBotify committed Sep 12, 2023
1 parent e43e848 commit ac34b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/settings/Profile/PronounsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit ac34b15

Please sign in to comment.