Skip to content

Commit

Permalink
Merge pull request #39013 from Expensify/hayata-update-beta-flag-name…
Browse files Browse the repository at this point in the history
…-for-accounting

Update the beta flag name
  • Loading branch information
Julesssss authored Mar 27, 2024
2 parents 9d9757f + 68c8cf2 commit 8e4a96b
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 8e4a96b

Please sign in to comment.