Skip to content

Commit

Permalink
Merge pull request #2606 from techmatters/CHI-3081-webchat
Browse files Browse the repository at this point in the history
webchat contact identifiers always returns a non-empty string
  • Loading branch information
mythilytm authored Nov 15, 2024
2 parents 425ae23 + 1d06177 commit 5b9d2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-hrm-form/src/utils/task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import selectChannelType from './selectChannelType';
const getContactValueFromWebchat = task => {
const { preEngagementData } = task.attributes;
if (!preEngagementData) return '';
return preEngagementData.contactIdentifier;
return preEngagementData.contactIdentifier || task.defaultFrom || '';
};

/**
Expand Down

0 comments on commit 5b9d2c2

Please sign in to comment.