From 68c8cf261d8aed949bd381d9f9663b97f4862675 Mon Sep 17 00:00:00 2001 From: Hayata Suenaga Date: Tue, 26 Mar 2024 12:48:20 -0700 Subject: [PATCH] chore: update the beta flag name --- src/CONST.ts | 2 +- src/libs/Permissions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CONST.ts b/src/CONST.ts index d5ad5584126c..47caa5e64a90 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -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', diff --git a/src/libs/Permissions.ts b/src/libs/Permissions.ts index 0f42737c270c..effec73f10a9 100644 --- a/src/libs/Permissions.ts +++ b/src/libs/Permissions.ts @@ -39,7 +39,7 @@ function canUseWorkflowsDelayedSubmission(betas: OnyxEntry): boolean { } function canUseAccountingIntegrations(betas: OnyxEntry): boolean { - return !!betas?.includes(CONST.BETAS.ACCOUNTING) || canUseAllBetas(betas); + return !!betas?.includes(CONST.BETAS.ACCOUNTING_ON_NEW_EXPENSIFY) || canUseAllBetas(betas); } /**