Skip to content

Commit

Permalink
fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
cdOut committed Jun 24, 2024
1 parent f41e297 commit c5d8cbb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/ReportDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,13 @@ function ReportDetailsPage({policies, report, session, personalDetails}: ReportD
const isApproved = ReportUtils.isReportApproved(moneyRequestReport);

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

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

Expand Down

0 comments on commit c5d8cbb

Please sign in to comment.