From 8adf863ea66321b8a9f1cd62b5db8c38d6a42eed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Akchot=C3=A9?= Date: Thu, 18 Dec 2025 13:39:45 +0100 Subject: [PATCH 1/3] remove `NEWDOT_REJECT` beta constant --- src/CONST/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/CONST/index.ts b/src/CONST/index.ts index a7996c84344a..8f2f00ff24a2 100755 --- a/src/CONST/index.ts +++ b/src/CONST/index.ts @@ -702,7 +702,6 @@ const CONST = { NETSUITE_USA_TAX: 'netsuiteUsaTax', PER_DIEM: 'newDotPerDiem', NEWDOT_MANAGER_MCTEST: 'newDotManagerMcTest', - NEWDOT_REJECT: 'newDotReject', CUSTOM_RULES: 'customRules', IS_TRAVEL_VERIFIED: 'isTravelVerified', PLAID_COMPANY_CARDS: 'plaidCompanyCards', From ba76dacd27087219b777cb854f57d3b3befbf4db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Akchot=C3=A9?= Date: Thu, 18 Dec 2025 13:39:48 +0100 Subject: [PATCH 2/3] remove newDotReject beta checks --- src/libs/ReportUtils.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 6e85b52ef173..da5a68771fe3 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -4977,10 +4977,6 @@ const changeMoneyRequestHoldStatus = (reportAction: OnyxEntry): vo }; const rejectMoneyRequestReason = (reportAction: OnyxEntry): void => { - if (!Permissions.isBetaEnabled(CONST.BETAS.NEWDOT_REJECT, allBetas)) { - return; - } - if (!isMoneyRequestAction(reportAction)) { return; } @@ -12678,10 +12674,6 @@ function getReportPersonalDetailsParticipants(report: Report, personalDetailsPar } function canRejectReportAction(currentUserLogin: string, report: Report, policy?: Policy): boolean { - if (!Permissions.isBetaEnabled(CONST.BETAS.NEWDOT_REJECT, allBetas)) { - return false; - } - const isReportApprover = isApproverUtils(policy, currentUserLogin); const isReportBeingProcessed = isProcessingReport(report); const isIOU = isIOUReport(report); From 9c459688d68421b84102267311a2ae191fac10ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucien=20Akchot=C3=A9?= Date: Thu, 18 Dec 2025 13:39:52 +0100 Subject: [PATCH 3/3] remove newDotReject beta setup in test --- tests/unit/ReportUtilsTest.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/unit/ReportUtilsTest.ts b/tests/unit/ReportUtilsTest.ts index 8f700053c453..06aea1699380 100644 --- a/tests/unit/ReportUtilsTest.ts +++ b/tests/unit/ReportUtilsTest.ts @@ -9007,7 +9007,6 @@ describe('ReportUtils', () => { await Onyx.merge(ONYXKEYS.SESSION, { accountID: 2, }); - await Onyx.merge(ONYXKEYS.BETAS, [CONST.BETAS.NEWDOT_REJECT]); expect(canRejectReportAction(approver, expenseReport, reportPolicy)).toBe(false); }); });