Skip to content

Commit

Permalink
chore: update the beta flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
Hayata Suenaga committed Mar 26, 2024
1 parent b0db06d commit 68c8cf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ const CONST = {
TRACK_EXPENSE: 'trackExpense',
P2P_DISTANCE_REQUESTS: 'p2pDistanceRequests',
WORKFLOWS_DELAYED_SUBMISSION: 'workflowsDelayedSubmission',
ACCOUNTING: 'accounting',
ACCOUNTING_ON_NEW_EXPENSIFY: 'accountingOnNewExpensify',
},
BUTTON_STATES: {
DEFAULT: 'default',
Expand Down
2 changes: 1 addition & 1 deletion src/libs/Permissions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function canUseWorkflowsDelayedSubmission(betas: OnyxEntry<Beta[]>): boolean {
}

function canUseAccountingIntegrations(betas: OnyxEntry<Beta[]>): boolean {
return !!betas?.includes(CONST.BETAS.ACCOUNTING) || canUseAllBetas(betas);
return !!betas?.includes(CONST.BETAS.ACCOUNTING_ON_NEW_EXPENSIFY) || canUseAllBetas(betas);
}

/**
Expand Down

0 comments on commit 68c8cf2

Please sign in to comment.