Commit f91fe37a authored by Renato Becker's avatar Renato Becker Committed by Guilherme Gazzo

Fix agent phone number. (#171)

parent 85403dd8
No preview for this file type
......@@ -336,7 +336,7 @@ export const ChatConnector = ({ ref, ...props }) => (
status: agent.status,
email: agent.emails && agent.emails[0] && agent.emails[0].address,
username: agent.username,
phone: agent.customFields && agent.customFields.phone,
phone: (agent.phone && agent.phone[0] && agent.phone[0].phoneNumber) || (agent.customFields && agent.customFields.phone),
} : undefined}
room={room}
messages={messages.filter((message) => renderMessage(message))}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment