Skip to content

Commit

Permalink
Add warn logs
Browse files Browse the repository at this point in the history
  • Loading branch information
VickyStash committed Jan 2, 2025
1 parent 5869543 commit a7516f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3438,6 +3438,7 @@ const changeMoneyRequestHoldStatus = (reportAction: OnyxEntry<ReportAction>, bac
const transactionID = ReportActionsUtils.getOriginalMessage(reportAction)?.IOUTransactionID;

if (!transactionID || !reportAction.childReportID) {
Log.warn('Missing transactionID and reportAction.childReportID during the change of the money request hold status');
return;
}

Expand Down Expand Up @@ -4293,6 +4294,8 @@ function goBackToDetailsPage(report: OnyxEntry<Report>, backTo?: string) {

if (report?.reportID) {
Navigation.goBack(ROUTES.REPORT_SETTINGS.getRoute(report.reportID, backTo));
} else {
Log.warn('Missing reportID during navigation back to the details page');
}
}

Expand Down Expand Up @@ -8328,6 +8331,8 @@ function createDraftTransactionAndNavigateToParticipantSelector(
]);
if (policyExpenseReportID) {
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CATEGORY.getRoute(actionName, CONST.IOU.TYPE.SUBMIT, transactionID, policyExpenseReportID));
} else {
Log.warn('policyExpenseReportID is not valid during expense categorizing');
}
return;
}
Expand All @@ -8350,6 +8355,8 @@ function createDraftTransactionAndNavigateToParticipantSelector(
]);
if (policyExpenseReportID) {
Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_CATEGORY.getRoute(actionName, CONST.IOU.TYPE.SUBMIT, transactionID, policyExpenseReportID));
} else {
Log.warn('policyExpenseReportID is not valid during expense categorizing');
}
return;
}
Expand Down

0 comments on commit a7516f5

Please sign in to comment.