Skip to content

Commit 0bf4e84

Browse files
authored
Merge pull request Expensify#77047 from Eskalifer1/fix/75520
2 parents d80d097 + 65c2fb3 commit 0bf4e84

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/MoneyRequestHeader.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function MoneyRequestHeader({report, parentReportAction, policy, onBackButtonPre
153153

154154
const shouldShowBrokenConnectionViolation = shouldShowBrokenConnectionViolationTransactionUtils(parentReport, policy, transactionViolations);
155155
const isReportSubmitter = isCurrentUserSubmitter(chatIOUReport);
156-
const isParentReportDM = isDM(parentReport);
156+
const isParentChatReportDM = isDM(chatIOUReport);
157157

158158
// If the parent report is a selfDM, it should always be opened in the Inbox tab
159159
const shouldOpenParentReportInCurrentTab = !isSelfDM(parentReport);
@@ -356,8 +356,7 @@ function MoneyRequestHeader({report, parentReportAction, policy, onBackButtonPre
356356
}
357357

358358
const isDismissed = isReportSubmitter ? dismissedHoldUseExplanation : dismissedRejectUseExplanation;
359-
360-
if (isDismissed || isParentReportDM) {
359+
if (isDismissed || isParentChatReportDM) {
361360
changeMoneyRequestHoldStatus(parentReportAction);
362361
} else if (isReportSubmitter) {
363362
setIsHoldEducationalModalVisible(true);

0 commit comments

Comments
 (0)