Skip to content

Commit

Permalink
remove ReportUtils.getReport references
Browse files Browse the repository at this point in the history
  • Loading branch information
JKobrynski committed Dec 20, 2024
1 parent dd65178 commit d56d865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8869,7 +8869,6 @@ export {
getAllReportActionsErrorsAndReportActionThatRequiresAttention,
hasInvoiceReports,
getReportMetadata,
getReport,
isHiddenForCurrentUser,
};

Expand Down
5 changes: 3 additions & 2 deletions src/pages/iou/request/step/IOURequestStepParticipants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ function IOURequestStepParticipants({
}, [iouType, translate, isSplitRequest, action]);

const selfDMReportID = useMemo(() => ReportUtils.findSelfDMReportID(), []);
const [selfDMReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${selfDMReportID}`);

const receiptFilename = transaction?.filename;
const receiptPath = transaction?.receipt?.source;
Expand All @@ -89,10 +90,10 @@ function IOURequestStepParticipants({

const rateID = DistanceRequestUtils.getCustomUnitRateID(selfDMReportID);
IOU.setCustomUnitRateID(transactionID, rateID);
IOU.setMoneyRequestParticipantsFromReport(transactionID, ReportUtils.getReport(selfDMReportID));
IOU.setMoneyRequestParticipantsFromReport(transactionID, selfDMReport);
const iouConfirmationPageRoute = ROUTES.MONEY_REQUEST_STEP_CONFIRMATION.getRoute(action, CONST.IOU.TYPE.TRACK, transactionID, selfDMReportID);
Navigation.navigate(iouConfirmationPageRoute);
}, [action, selfDMReportID, transactionID]);
}, [action, selfDMReport, selfDMReportID, transactionID]);

const addParticipant = useCallback(
(val: Participant[]) => {
Expand Down

0 comments on commit d56d865

Please sign in to comment.