From 9f329efc35373518cc9dc7a7373d95248fb9fdcc Mon Sep 17 00:00:00 2001 From: chiragsalian Date: Fri, 29 Oct 2021 12:43:39 -0700 Subject: [PATCH] hasSelfSelectedPronouns boolean fix --- src/pages/settings/Profile/ProfilePage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/Profile/ProfilePage.js b/src/pages/settings/Profile/ProfilePage.js index 28a9fe80d39..173b483f42e 100755 --- a/src/pages/settings/Profile/ProfilePage.js +++ b/src/pages/settings/Profile/ProfilePage.js @@ -86,7 +86,7 @@ class ProfilePage extends Component { lastName, lastNameError: '', pronouns, - hasSelfSelectedPronouns: pronouns && !pronouns.startsWith(CONST.PRONOUNS.PREFIX), + hasSelfSelectedPronouns: !_.isEmpty(pronouns) && !pronouns.startsWith(CONST.PRONOUNS.PREFIX), selectedTimezone: lodashGet(timezone, 'selected', CONST.DEFAULT_TIME_ZONE.selected), isAutomaticTimezone: lodashGet(timezone, 'automatic', CONST.DEFAULT_TIME_ZONE.automatic), logins: this.getLogins(props.user.loginList),