diff --git a/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx b/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx index a1536c8270504..447fff00c0541 100644 --- a/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx +++ b/src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx @@ -744,111 +744,113 @@ function MoneyRequestReportPreviewContent({ const isReportDeleted = action?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE; const formattedAmount = getTotalAmountForIOUReportPreviewButton(iouReport, policy, reportPreviewAction); - const reportPreviewActions = { - [CONST.REPORT.REPORT_PREVIEW_ACTIONS.SUBMIT]: ( - { - if (hasDynamicExternalWorkflow(policy) && !isDEWBetaEnabled) { - showDEWModal(); - return; - } - submitReport({ - expenseReport: iouReport, - policy, - currentUserAccountIDParam: currentUserAccountID, - currentUserEmailParam: currentUserEmail, - hasViolations, - isASAPSubmitBetaEnabled, - expenseReportCurrentNextStepDeprecated: iouReportNextStep, - userBillingGraceEndPeriods, - amountOwed, - onSubmitted: startSubmittingAnimation, - }); - }} - isSubmittingAnimationRunning={isSubmittingAnimationRunning} - onAnimationFinish={stopAnimation} - sentryLabel={CONST.SENTRY_LABEL.REPORT_PREVIEW.SUBMIT_BUTTON} - /> - ), - [CONST.REPORT.REPORT_PREVIEW_ACTIONS.APPROVE]: ( -