Skip to content

Commit

Permalink
Revert "fix lint errors"
Browse files Browse the repository at this point in the history
This reverts commit 02a3470.

revert hold changes
  • Loading branch information
cdOut committed Jul 4, 2024
1 parent 02a3470 commit 81e0783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
: '';

let holdReportAction: OnyxTypes.ReportAction | undefined;
if (caseID === CASES.MONEY_REQUEST) {
if (caseID == CASES.MONEY_REQUEST) {
holdReportAction = parentReportAction;
} else if (caseID === CASES.MONEY_REPORT) {
} else if (caseID == CASES.MONEY_REPORT) {
holdReportAction = requestParentReportAction;
}
const canHoldUnholdReportAction = ReportUtils.canHoldUnholdReportAction(holdReportAction);
Expand All @@ -475,7 +475,7 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
result.push(PromotedActions.share(report));

return result;
}, [report, holdReportAction, canJoin, isExpenseReport, shouldShowHoldAction, canHoldUnholdReportAction.canHoldRequest]);
}, [report, parentReportAction, canJoin, isExpenseReport, shouldShowHoldAction, canHoldUnholdReportAction.canHoldRequest]);

const nameSectionExpenseIOU = (
<View style={[styles.reportDetailsRoomInfo, styles.mw100]}>
Expand Down

0 comments on commit 81e0783

Please sign in to comment.