Skip to content

Commit

Permalink
Merge pull request #44243 from software-mansion-labs/rdfix/scanning-hold
Browse files Browse the repository at this point in the history
[Deploy Blocker Fix] Scan - "Unhold" option appears in report details page of scanning expense

(cherry picked from commit 0ddf880)
  • Loading branch information
Beamanator authored and OSBotify committed Jun 24, 2024
1 parent 731e7e8 commit bf5f458
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -441,11 +441,9 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
? ReportActionsUtils.getOriginalMessage(requestParentReportAction)?.IOUTransactionID ?? ''
: '';

const isSettled = ReportUtils.isSettled(moneyRequestReport?.reportID);
const isApproved = ReportUtils.isReportApproved(moneyRequestReport);

const shouldShowHoldAction = caseID !== CASES.MONEY_REPORT && !isSettled && !isApproved && !isDeletedParentAction && !ReportUtils.isArchivedRoom(parentReport);
const canHoldUnholdReportAction = ReportUtils.canHoldUnholdReportAction(parentReportAction);
const shouldShowHoldAction =
caseID !== CASES.MONEY_REPORT && (canHoldUnholdReportAction.canHoldRequest || canHoldUnholdReportAction.canUnholdRequest) && !ReportUtils.isArchivedRoom(parentReport);

const canJoin = !isExpenseReport && ReportUtils.canJoinChat(report, parentReportAction, policy);

Expand Down

0 comments on commit bf5f458

Please sign in to comment.