Skip to content

Commit

Permalink
Merge pull request #34634 from bernhardoj/fix/34060-new-group-is-crea…
Browse files Browse the repository at this point in the history
…ted-on-each-scan-request

Fix a new group is always created on creating a split scan request
  • Loading branch information
stitesExpensify authored Jan 17, 2024
2 parents 7dfbddc + 4c225f2 commit 4b7b8f2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/iou/request/step/IOURequestStepConfirmation.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ function IOURequestStepConfirmation({

// If we have a receipt let's start the split bill by creating only the action, the transaction, and the group DM if needed
if (iouType === CONST.IOU.TYPE.SPLIT && receiptFile) {
const existingSplitChatReportID = CONST.REGEX.NUMBER.test(reportID) ? reportID : '';
IOU.startSplitBill(
selectedParticipants,
currentUserPersonalDetails.login,
Expand All @@ -226,7 +225,7 @@ function IOURequestStepConfirmation({
transaction.category,
transaction.tag,
receiptFile,
existingSplitChatReportID,
report.reportID,
);
return;
}
Expand Down Expand Up @@ -277,7 +276,7 @@ function IOURequestStepConfirmation({

requestMoney(selectedParticipants, trimmedComment);
},
[iouType, transaction, currentUserPersonalDetails.login, currentUserPersonalDetails.accountID, report, reportID, requestType, createDistanceRequest, requestMoney, receiptFile],
[iouType, transaction, currentUserPersonalDetails.login, currentUserPersonalDetails.accountID, report, requestType, createDistanceRequest, requestMoney, receiptFile],
);

/**
Expand Down

0 comments on commit 4b7b8f2

Please sign in to comment.