From d26a61c388dcc8dcaa717f2b2a92ad89bfcf4720 Mon Sep 17 00:00:00 2001 From: Kevin Aleman Date: Mon, 23 Oct 2023 09:26:04 -0600 Subject: [PATCH] fix: `nextAgent` widget call sending an array of chars instead of `department` query (#30689) --- packages/livechat/src/lib/triggers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/livechat/src/lib/triggers.js b/packages/livechat/src/lib/triggers.js index 4cf01090587c..efa9e9bdc65d 100644 --- a/packages/livechat/src/lib/triggers.js +++ b/packages/livechat/src/lib/triggers.js @@ -34,7 +34,7 @@ const getAgent = (triggerAction) => { let agent; try { - agent = await Livechat.nextAgent(department); + agent = await Livechat.nextAgent({ department }); } catch (error) { return reject(error); }