Skip to content

Commit

Permalink
check if a report created as submitted
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed Feb 9, 2024
1 parent 655d9de commit e70ec81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/actions/IOU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,8 @@ function getMoneyRequestInformation(
}
: {};

const optimisticNextStep = NextStepUtils.buildNextStep(iouReport, CONST.REPORT.STATUS_NUM.OPEN);
const optimisticNextStep = NextStepUtils.buildNextStep(iouReport, needsToBeManuallySubmitted ? CONST.REPORT.STATUS_NUM.OPEN : CONST.REPORT.STATUS_NUM.SUBMITTED);

// STEP 5: Build Onyx Data
const [optimisticData, successData, failureData] = buildOnyxDataForMoneyRequest(
chatReport,
Expand Down

0 comments on commit e70ec81

Please sign in to comment.