From f03ae8280dd033f91d2f0b2c533a60f35861e1f3 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 17 Jan 2024 13:38:52 +0800 Subject: [PATCH 1/2] pass report id from report onyx instead of params --- src/pages/iou/request/step/IOURequestStepConfirmation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/iou/request/step/IOURequestStepConfirmation.js b/src/pages/iou/request/step/IOURequestStepConfirmation.js index bbe703e50d18..60a17d0f6109 100644 --- a/src/pages/iou/request/step/IOURequestStepConfirmation.js +++ b/src/pages/iou/request/step/IOURequestStepConfirmation.js @@ -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, @@ -226,7 +225,7 @@ function IOURequestStepConfirmation({ transaction.category, transaction.tag, receiptFile, - existingSplitChatReportID, + report.reportID, ); return; } From 4c225f26b616a97a464dd4ef2a162a888b6fc4db Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 17 Jan 2024 16:31:08 +0800 Subject: [PATCH 2/2] lint --- src/pages/iou/request/step/IOURequestStepConfirmation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/iou/request/step/IOURequestStepConfirmation.js b/src/pages/iou/request/step/IOURequestStepConfirmation.js index 60a17d0f6109..9df2564ae38d 100644 --- a/src/pages/iou/request/step/IOURequestStepConfirmation.js +++ b/src/pages/iou/request/step/IOURequestStepConfirmation.js @@ -276,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], ); /**