Skip to content

Commit

Permalink
Help Center: Hide support name in chat messages. (#98207)
Browse files Browse the repository at this point in the history
* Update display name for business role in support chat messages

* Localize business role display name in support chat messages
  • Loading branch information
agrullon95 authored Jan 10, 2025
1 parent 2949334 commit 9e5841f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export const HelpCenterSupportChatMessage = ( {
const helpCenterContextSectionName = helpCenterContext.sectionName;
const { data: supportInteraction } = useGetSupportInteractionById( supportInteractionId );
const { setCurrentSupportInteraction } = useDataStoreDispatch( HELP_CENTER_STORE );
const messageDisplayName =
message.role === 'business' ? __( 'Happiness Engineer', __i18n_text_domain__ ) : displayName;

const renderAvatar = () => {
if ( message.role === 'business' ) {
Expand Down Expand Up @@ -91,7 +93,7 @@ export const HelpCenterSupportChatMessage = ( {
</div>
<div className="help-center-support-chat__conversation-sub-information">
<span className="help-center-support-chat__conversation-information-name">
{ displayName }
{ messageDisplayName }
</span>
<Icon
size={ 2 }
Expand Down

0 comments on commit 9e5841f

Please sign in to comment.