Skip to content

Commit

Permalink
changed according to PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
cabaceira committed Oct 17, 2023
1 parent d090dbe commit e0901fa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +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);
const canPlaceChatOnHold = Boolean(!room.onHold && room.u && manualOnHoldAllowed && (!allowManualOnHoldUponAgentEngagement || !(room as any).lastMessage?.token));

const hasPermissionButtons = (id: string): boolean => {
switch (id) {
case QuickActionsEnum.MoveQueue:
Expand Down

0 comments on commit e0901fa

Please sign in to comment.