Skip to content

Commit

Permalink
Make sure the autoApproval is off for Collect
Browse files Browse the repository at this point in the history
  • Loading branch information
mountiny committed Mar 18, 2024
1 parent 7262520 commit e9ab69c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ function setWorkspaceApprovalMode(policyID: string, approver: string, approvalMo
policyID,
value: JSON.stringify({
...value,
isAutoApprovalEnabled: approvalMode === CONST.POLICY.APPROVAL_MODE.BASIC,
// This property should now be set to false for all Collect policies
isAutoApprovalEnabled: false,
}),
};
API.write(WRITE_COMMANDS.SET_WORKSPACE_APPROVAL_MODE, params, {optimisticData, failureData, successData});
Expand Down

0 comments on commit e9ab69c

Please sign in to comment.