Skip to content

Commit

Permalink
fix: remove duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
daledah committed Dec 4, 2024
1 parent 021d784 commit 0537b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7190,7 +7190,7 @@ function submitReport(expenseReport: OnyxTypes.Report) {
const adminAccountID = policy?.role === CONST.POLICY.ROLE.ADMIN ? currentUserPersonalDetails?.accountID : undefined;
const optimisticSubmittedReportAction = ReportUtils.buildOptimisticSubmittedReportAction(expenseReport?.total ?? 0, expenseReport.currency ?? '', expenseReport.reportID, adminAccountID);
const optimisticNextStep = NextStepUtils.buildNextStep(expenseReport, isSubmitAndClosePolicy ? CONST.REPORT.STATUS_NUM.CLOSED : CONST.REPORT.STATUS_NUM.SUBMITTED);
const approvalChain = ReportUtils.getApprovalChain(PolicyUtils.getPolicy(expenseReport?.policyID), expenseReport);
const approvalChain = ReportUtils.getApprovalChain(policy, expenseReport);
const managerID = PersonalDetailsUtils.getAccountIDsByLogins(approvalChain).at(0);

const optimisticData: OnyxUpdate[] = !isSubmitAndClosePolicy
Expand Down

0 comments on commit 0537b11

Please sign in to comment.