Skip to content

Commit

Permalink
Merge pull request #2699 from glific/2695-chat-blank-contacts
Browse files Browse the repository at this point in the history
fixed blank chat name
  • Loading branch information
mdshamoon authored Jan 15, 2024
2 parents b403eeb + f8b12be commit bc61350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export const getDisplayName = (conversation: any) => {
setLogs(er, 'error');
}

if (contactFields?.name) {
if (contactFields?.name && contactFields.name.value) {
displayName = contactFields.name.value;
} else if (conversation.contact.name) {
displayName = conversation.contact.name;
Expand Down

0 comments on commit bc61350

Please sign in to comment.