diff --git a/src/components/MoneyRequestHeader.tsx b/src/components/MoneyRequestHeader.tsx index 148e32a13dfe..16cf79dcff5f 100644 --- a/src/components/MoneyRequestHeader.tsx +++ b/src/components/MoneyRequestHeader.tsx @@ -133,7 +133,7 @@ function MoneyRequestHeader({report, parentReportAction, policy, onBackButtonPre const shouldShowBrokenConnectionViolation = shouldShowBrokenConnectionViolationTransactionUtils(parentReport, policy, transactionViolations); const isReportSubmitter = isCurrentUserSubmitter(chatIOUReport); - const isParentReportDM = isDM(parentReport); + const isParentChatReportDM = isDM(chatIOUReport); // If the parent report is a selfDM, it should always be opened in the Inbox tab const shouldOpenParentReportInCurrentTab = !isSelfDM(parentReport); @@ -308,8 +308,7 @@ function MoneyRequestHeader({report, parentReportAction, policy, onBackButtonPre } const isDismissed = isReportSubmitter ? dismissedHoldUseExplanation : dismissedRejectUseExplanation; - - if (isDismissed || isParentReportDM) { + if (isDismissed || isParentChatReportDM) { changeMoneyRequestHoldStatus(parentReportAction); } else if (isReportSubmitter) { setIsHoldEducationalModalVisible(true);