@@ -11,7 +11,7 @@ import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails'
1111import useDebouncedState from '@hooks/useDebouncedState' ;
1212import useLocalize from '@hooks/useLocalize' ;
1313import Navigation from '@libs/Navigation/Navigation' ;
14- import { getOutstandingReportsForUser , getPolicyName } from '@libs/ReportUtils' ;
14+ import { getOutstandingReportsForUser , getPolicyName , isIOUReport } from '@libs/ReportUtils' ;
1515import CONST from '@src/CONST' ;
1616import ONYXKEYS from '@src/ONYXKEYS' ;
1717import type { Route } from '@src/ROUTES' ;
@@ -59,6 +59,7 @@ function IOURequestEditReportCommon({backTo, transactionsReports, selectReport,
5959
6060 const onlyReport = transactionsReports . length === 1 ? transactionsReports . at ( 0 ) : undefined ;
6161 const isOwner = onlyReport ? onlyReport . ownerAccountID === currentUserPersonalDetails . accountID : false ;
62+ const isReportIOU = onlyReport ? isIOUReport ( onlyReport ) : false ;
6263
6364 const expenseReports = useMemo (
6465 ( ) =>
@@ -123,7 +124,7 @@ function IOURequestEditReportCommon({backTo, transactionsReports, selectReport,
123124 initiallyFocusedOptionKey = { transactionsReports . length === 1 ? transactionsReports . at ( 0 ) ?. reportID : undefined }
124125 ListItem = { InviteMemberListItem }
125126 listFooterContent = {
126- isEditing && isOwner ? (
127+ isEditing && isOwner && ! isReportIOU ? (
127128 < MenuItem
128129 onPress = { removeFromReport }
129130 title = { translate ( 'iou.removeFromReport' ) }
0 commit comments