Skip to content

Commit 346eb42

Browse files
Update handler/ExecuteLivechatBlockActionHandler.ts
Co-authored-by: Murtaza Patrawala <34130764+murtaza98@users.noreply.github.com>
1 parent 1f29da3 commit 346eb42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

handler/ExecuteLivechatBlockActionHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class ExecuteLivechatBlockActionHandler {
3838

3939
switch (actionId) {
4040
case ActionIds.PERFORM_HANDOVER:
41-
let targetDepartment: string = await getAppSettingValue(this.read, AppSetting.FallbackTargetDepartment);
41+
const targetDepartment: string = value || await getAppSettingValue(this.read, AppSetting.FallbackTargetDepartment);
4242
if (value !== undefined) { targetDepartment = value; }
4343
if (!targetDepartment) {
4444
await createMessage(rid, this.read, this.modify, { text: DefaultMessage.DEFAULT_DialogflowRequestFailedMessage });

0 commit comments

Comments
 (0)