Fix undefined error when forwarding chats to offline department. (#22154)

Co-authored-by: Rafael Ferreira <rafaelblink@gmail.com>
pull/22095/head^2
Renato Becker 4 years ago committed by GitHub
parent 0b39f33ab0
commit 520dfa573f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/livechat/server/lib/Helper.js

@ -233,6 +233,9 @@ export const dispatchInquiryQueued = (inquiry, agent) => {
// Alert only the online agents of the queued request
const onlineAgents = Livechat.getOnlineAgents(department, agent);
if (!onlineAgents?.length) {
return;
}
const notificationUserName = v && (v.name || v.username);

Loading…
Cancel
Save