Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion client/omnichannel/directory/chats/contextualBar/ChatInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export function ChatInfo({ id, route }) {
const t = useTranslation();

const formatDateAndTime = useFormatDateAndTime();
const formatDuration = useFormatDuration();

const formatDuration = useFormatDuration();

Expand Down Expand Up @@ -142,7 +143,7 @@ export function ChatInfo({ id, route }) {
</>}
{ts && metrics?.reaction?.fd && <>
<Label>{t('Queue_Time')}</Label>
<Info>{moment(ts).from(moment(metrics.reaction.fd), true)}</Info>
<Info>{formatDuration(moment(metrics.reaction.fd).diff(moment(ts)))}</Info>
Comment thread
rafaelblink marked this conversation as resolved.
Outdated
</>}
{closedAt && <>
<Label>{t('Chat_Duration')}</Label>
Expand Down