Skip to content

Commit

Permalink
Update ReportUtils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com>
  • Loading branch information
allroundexperts and shubham1206agra authored Apr 25, 2024
1 parent 34dc692 commit 9fce2e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6121,7 +6121,7 @@ function createDraftTransactionAndNavigateToParticipantSelector(transactionID: s
(policy) => policy?.type !== CONST.POLICY.TYPE.PERSONAL && policy?.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE,
);

if (allPolicies && filteredPolicies.length > 0) {
if (actionName === CONST.IOU.ACTION.SUBMIT || (allPolicies && filteredPolicies.length > 0)) {
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_PARTICIPANTS.getRoute(CONST.IOU.TYPE.SUBMIT, transactionID, reportID, undefined, actionName));
return;
}
Expand Down

0 comments on commit 9fce2e8

Please sign in to comment.