@@ -595,19 +595,21 @@ const ContextMenuActions: ContextMenuAction[] = [
595595 const holdReportAction = getReportAction ( moneyRequestAction ?. childReportID , `${ iouTransaction ?. comment ?. hold ?? '' } ` ) ;
596596 return canHoldUnholdReportAction ( moneyRequestReport , moneyRequestAction , holdReportAction , iouTransaction , moneyRequestPolicy , currentUserAccountID ) . canUnholdRequest ;
597597 } ,
598- onPress : ( closePopover , { moneyRequestAction, iouTransaction, isDelegateAccessRestricted, showDelegateNoAccessModal, isOffline} ) => {
598+ onPress : ( closePopover , { moneyRequestAction, iouTransaction, isDelegateAccessRestricted, showDelegateNoAccessModal, isOffline, currentUserPersonalDetails } ) => {
599599 if ( isDelegateAccessRestricted ) {
600600 hideContextMenu ( false , showDelegateNoAccessModal ) ;
601601 return ;
602602 }
603603
604604 if ( closePopover ) {
605- hideContextMenu ( false , ( ) => changeMoneyRequestHoldStatus ( moneyRequestAction , iouTransaction , isOffline ) ) ;
605+ hideContextMenu ( false , ( ) =>
606+ changeMoneyRequestHoldStatus ( moneyRequestAction , iouTransaction , isOffline , currentUserPersonalDetails ?. login ?? '' , currentUserPersonalDetails . accountID ) ,
607+ ) ;
606608 return ;
607609 }
608610
609611 // No popover to hide, call changeMoneyRequestHoldStatus immediately
610- changeMoneyRequestHoldStatus ( moneyRequestAction , iouTransaction , isOffline ) ;
612+ changeMoneyRequestHoldStatus ( moneyRequestAction , iouTransaction , isOffline , currentUserPersonalDetails ?. login ?? '' , currentUserPersonalDetails . accountID ) ;
611613 } ,
612614 getDescription : ( ) => { } ,
613615 sentryLabel : CONST . SENTRY_LABEL . CONTEXT_MENU . UNHOLD ,
@@ -623,19 +625,21 @@ const ContextMenuActions: ContextMenuAction[] = [
623625 const holdReportAction = getReportAction ( moneyRequestAction ?. childReportID , `${ iouTransaction ?. comment ?. hold ?? '' } ` ) ;
624626 return canHoldUnholdReportAction ( moneyRequestReport , moneyRequestAction , holdReportAction , iouTransaction , moneyRequestPolicy , currentUserAccountID ) . canHoldRequest ;
625627 } ,
626- onPress : ( closePopover , { moneyRequestAction, iouTransaction, isDelegateAccessRestricted, showDelegateNoAccessModal, isOffline} ) => {
628+ onPress : ( closePopover , { moneyRequestAction, iouTransaction, isDelegateAccessRestricted, showDelegateNoAccessModal, isOffline, currentUserPersonalDetails } ) => {
627629 if ( isDelegateAccessRestricted ) {
628630 hideContextMenu ( false , showDelegateNoAccessModal ) ;
629631 return ;
630632 }
631633
632634 if ( closePopover ) {
633- hideContextMenu ( false , ( ) => changeMoneyRequestHoldStatus ( moneyRequestAction , iouTransaction , isOffline ) ) ;
635+ hideContextMenu ( false , ( ) =>
636+ changeMoneyRequestHoldStatus ( moneyRequestAction , iouTransaction , isOffline , currentUserPersonalDetails ?. login ?? '' , currentUserPersonalDetails . accountID ) ,
637+ ) ;
634638 return ;
635639 }
636640
637641 // No popover to hide, call changeMoneyRequestHoldStatus immediately
638- changeMoneyRequestHoldStatus ( moneyRequestAction , iouTransaction , isOffline ) ;
642+ changeMoneyRequestHoldStatus ( moneyRequestAction , iouTransaction , isOffline , currentUserPersonalDetails ?. login ?? '' , currentUserPersonalDetails . accountID ) ;
639643 } ,
640644 getDescription : ( ) => { } ,
641645 sentryLabel : CONST . SENTRY_LABEL . CONTEXT_MENU . HOLD ,
0 commit comments