Skip to content

Commit

Permalink
Refactor variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
WikusKriek committed Mar 2, 2024
1 parent bc681c3 commit 0543404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/HoldReasonPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ function HoldReasonPage({route}: HoldReasonPageProps) {

const {transactionID, reportID, backTo} = route.params;

const reportData = ReportUtils.getReport(reportID);
const parentReportAction = ReportActionsUtils.getReportAction(reportData?.parentReportID ?? '', reportData?.parentReportActionID ?? '');
const report = ReportUtils.getReport(reportID);
const parentReportAction = ReportActionsUtils.getReportAction(report?.parentReportID ?? '', report?.parentReportActionID ?? '');

const navigateBack = () => {
Navigation.navigate(backTo);
Expand Down

0 comments on commit 0543404

Please sign in to comment.