@@ -5,7 +5,7 @@ import {useMoneyReportTransactionThread} from '@components/MoneyReportTransactio
55
66import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID' ;
77import Navigation from '@libs/Navigation/Navigation' ;
8- import { changeMoneyRequestHoldStatus , isCurrentUserSubmitter , isDM } from '@libs/ReportUtils' ;
8+ import { changeMoneyRequestHoldStatus , isCurrentUserSubmitter } from '@libs/ReportUtils' ;
99
1010import CONST from '@src/CONST' ;
1111import ONYXKEYS from '@src/ONYXKEYS' ;
@@ -40,7 +40,6 @@ function useHoldRejectActions({reportID, onHoldEducationalOpen, onRejectModalOpe
4040 const expensifyIcons = useMemoizedLazyExpensifyIcons ( [ 'Stopwatch' , 'ThumbsDown' ] as const ) ;
4141
4242 const [ moneyRequestReport ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT } ${ reportID } ` ) ;
43- const [ chatReport ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT } ${ getNonEmptyStringOnyxID ( moneyRequestReport ?. chatReportID ) } ` ) ;
4443 const { iouTransactionID, requestParentReportAction} = useMoneyReportTransactionThread ( ) ;
4544 const { login : currentUserLogin , accountID : currentUserAccountID } = useCurrentUserPersonalDetails ( ) ;
4645
@@ -53,7 +52,6 @@ function useHoldRejectActions({reportID, onHoldEducationalOpen, onRejectModalOpe
5352 const [ dismissedHoldUseExplanation ] = useOnyx ( ONYXKEYS . NVP_DISMISSED_HOLD_USE_EXPLANATION ) ;
5453
5554 const isReportSubmitter = isCurrentUserSubmitter ( chatIOUReport ) ;
56- const isChatReportDM = isDM ( chatReport ) ;
5755
5856 return {
5957 [ CONST . REPORT . SECONDARY_ACTIONS . HOLD ] : {
@@ -73,7 +71,7 @@ function useHoldRejectActions({reportID, onHoldEducationalOpen, onRejectModalOpe
7371
7472 const isDismissed = isReportSubmitter ? dismissedHoldUseExplanation : dismissedRejectUseExplanation ;
7573
76- if ( isDismissed || isChatReportDM ) {
74+ if ( isDismissed ) {
7775 changeMoneyRequestHoldStatus ( requestParentReportAction , transaction , isOffline , currentUserLogin ?? '' , currentUserAccountID , transactionViolations ) ;
7876 } else if ( isReportSubmitter ) {
7977 onHoldEducationalOpen ( ) ;
0 commit comments