@@ -4,13 +4,11 @@ import type {OnyxCollection, OnyxEntry} from 'react-native-onyx';
44import useOnyx from '@hooks/useOnyx' ;
55import useThemeStyles from '@hooks/useThemeStyles' ;
66import { getOriginalMessage , getReportAction , isMoneyRequestAction } from '@libs/ReportActionsUtils' ;
7+ import { getOriginalReportID } from '@libs/ReportUtils' ;
78import ReportActionItem from '@pages/home/report/ReportActionItem' ;
89import CONST from '@src/CONST' ;
910import ONYXKEYS from '@src/ONYXKEYS' ;
10- import type { Policy , Report , Transaction , ReportActionsDrafts } from '@src/types/onyx' ;
11- import { getOriginalReportID } from '@libs/ReportUtils' ;
12-
13-
11+ import type { Policy , Report , ReportActionsDrafts , Transaction } from '@src/types/onyx' ;
1412
1513type DuplicateTransactionItemProps = {
1614 transaction : OnyxEntry < Transaction > ;
@@ -38,13 +36,14 @@ function DuplicateTransactionItem({transaction, index, allReports, policies}: Du
3836 const originalReportID = getOriginalReportID ( report ?. reportID , action ) ;
3937
4038 const [ draftMessage ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_DRAFTS } ${ originalReportID } ` , {
41- canBeMissing : true } ) ;
39+ canBeMissing : true ,
40+ } ) ;
4241
4342 const [ emojiReactions ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_REACTIONS } ${ action ?. reportActionID } ` , {
4443 canBeMissing : true ,
4544 } ) ;
4645
47- const [ linkedTransactionRouteError ] = useOnyx ( `${ ONYXKEYS . COLLECTION . TRANSACTION } ${ isMoneyRequestAction ( action ) && getOriginalMessage ( action ) ?. IOUTransactionID } ` , {
46+ const [ linkedTransactionRouteError ] = useOnyx ( `${ ONYXKEYS . COLLECTION . TRANSACTION } ${ isMoneyRequestAction ( action ) && getOriginalMessage ( action ) ?. IOUTransactionID } ` , {
4847 canBeMissing : true ,
4948 selector : ( transactionItem ) => transactionItem ?. errorFields ?. route ?? null ,
5049 } ) ;
@@ -74,7 +73,7 @@ function DuplicateTransactionItem({transaction, index, allReports, policies}: Du
7473 draftMessage = { draftMessage as OnyxEntry < string & ReportActionsDrafts > }
7574 emojiReactions = { emojiReactions }
7675 linkedTransactionRouteError = { linkedTransactionRouteError }
77- userBillingFundID = { userBillingFundID ?? 0 }
76+ userBillingFundID = { userBillingFundID }
7877 />
7978 </ View >
8079 ) ;
0 commit comments