Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/libs/actions/Policy/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1814,9 +1814,13 @@ function buildPolicyData(
const optimisticMccGroupData = buildOptimisticMccGroup();

const shouldEnableWorkflowsByDefault =
!introSelected?.choice || introSelected.choice === CONST.ONBOARDING_CHOICES.MANAGE_TEAM || introSelected.choice === CONST.ONBOARDING_CHOICES.LOOKING_AROUND;
!introSelected?.choice ||
introSelected.choice === CONST.ONBOARDING_CHOICES.MANAGE_TEAM ||
introSelected.choice === CONST.ONBOARDING_CHOICES.LOOKING_AROUND ||
introSelected.choice === CONST.ONBOARDING_CHOICES.PERSONAL_SPEND;
Comment thread
luacmartins marked this conversation as resolved.
const shouldSetCreatedWorkspaceAsActivePolicy = !!activePolicyID && allPolicies?.[`${ONYXKEYS.COLLECTION.POLICY}${activePolicyID}`]?.type === CONST.POLICY.TYPE.PERSONAL;

// WARNING: The data below should be kept in sync with the API so we create the policy with the correct configuration.
const optimisticData: OnyxUpdate[] = [
{
onyxMethod: Onyx.METHOD.SET,
Expand Down
Loading