Skip to content

Commit

Permalink
Update display name for business role in support chat messages
Browse files Browse the repository at this point in the history
  • Loading branch information
agrullon95 committed Jan 10, 2025
1 parent 2abae24 commit 576c0cc
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ 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' : displayName;

const renderAvatar = () => {
if ( message.role === 'business' ) {
Expand Down Expand Up @@ -91,7 +92,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 576c0cc

Please sign in to comment.