diff --git a/apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx b/apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx index 795d212aa40f6..8be7bdad7cc0e 100644 --- a/apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx +++ b/apps/meteor/client/views/room/Header/Omnichannel/QuickActions/hooks/useQuickActions.tsx @@ -310,8 +310,8 @@ export const useQuickActions = (): { const canCloseRoom = usePermission('close-livechat-room'); const canCloseOthersRoom = usePermission('close-others-livechat-room'); const allowManualOnHoldUponAgentEngagement = useSetting('Livechat_allow_manual_on_hold_upon_agent_engagement_only'); - const canPlaceChatOnHold = !room.onHold && room.u && manualOnHoldAllowed && - (allowManualOnHoldUponAgentEngagement ? !(room as any).lastMessage?.token : true); + const canPlaceChatOnHold = + !room.onHold && room.u && manualOnHoldAllowed && (allowManualOnHoldUponAgentEngagement ? !(room as any).lastMessage?.token : true); const hasPermissionButtons = (id: string): boolean => { switch (id) { case QuickActionsEnum.MoveQueue: diff --git a/apps/meteor/ee/app/livechat-enterprise/server/settings.ts b/apps/meteor/ee/app/livechat-enterprise/server/settings.ts index 38e1a8d231984..2863284d6cff9 100644 --- a/apps/meteor/ee/app/livechat-enterprise/server/settings.ts +++ b/apps/meteor/ee/app/livechat-enterprise/server/settings.ts @@ -199,16 +199,15 @@ export const createSettings = async (): Promise => { }); await settingsRegistry.add('Livechat_allow_manual_on_hold_upon_agent_engagement_only', true, { - type: 'boolean', - group: 'Omnichannel', - section: 'Sessions', - enterprise: true, - invalidValue: false, - public: true, - modules: ['livechat-enterprise'], - enableQuery: { _id: 'Livechat_allow_manual_on_hold', value: true }, - }); - + type: 'boolean', + group: 'Omnichannel', + section: 'Sessions', + enterprise: true, + invalidValue: false, + public: true, + modules: ['livechat-enterprise'], + enableQuery: { _id: 'Livechat_allow_manual_on_hold', value: true }, + }); await settingsRegistry.add('Livechat_auto_transfer_chat_timeout', 0, { type: 'int',