Skip to content

Commit

Permalink
Merge pull request #42067 from nexarvo/fix/38764
Browse files Browse the repository at this point in the history
Show consistent name for 'Concierge'
  • Loading branch information
puneetlath authored May 27, 2024
2 parents fd322cc + 5fb753b commit 019c6b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1278,6 +1278,8 @@ const CONST = {
EXPENSIFY_EMAIL_DOMAIN: '@expensify.com',
},

CONCIERGE_DISPLAY_NAME: 'Concierge',

INTEGRATION_ENTITY_MAP_TYPES: {
DEFAULT: 'DEFAULT',
NONE: 'NONE',
Expand Down
4 changes: 4 additions & 0 deletions src/libs/PersonalDetailsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ function getDisplayNameOrDefault(passedPersonalDetails?: Partial<PersonalDetails
displayName = `${displayName} (${Localize.translateLocal('common.you').toLowerCase()})`;
}

if (passedPersonalDetails?.accountID === CONST.ACCOUNT_ID.CONCIERGE) {
displayName = CONST.CONCIERGE_DISPLAY_NAME;
}

if (displayName) {
return displayName;
}
Expand Down

0 comments on commit 019c6b4

Please sign in to comment.