From d3f6eb3877d9bff453e9b20a2dd0786f2abaadd4 Mon Sep 17 00:00:00 2001 From: Eskalifer1 Date: Tue, 9 Dec 2025 01:42:57 +0200 Subject: [PATCH] fix:75520 get correct value for isDM in MoneyRequestHeader --- src/components/MoneyRequestHeader.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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);