@@ -9,6 +9,7 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout';
99import useStyleUtils from '@hooks/useStyleUtils' ;
1010import useTheme from '@hooks/useTheme' ;
1111import useThemeStyles from '@hooks/useThemeStyles' ;
12+ import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID' ;
1213import { getIOUActionForTransactionID } from '@libs/ReportActionsUtils' ;
1314import { isChatThread } from '@libs/ReportUtils' ;
1415import variables from '@styles/variables' ;
@@ -23,7 +24,9 @@ function ChatBubbleCell({transaction, containerStyles, isInSingleTransactionRepo
2324 const theme = useTheme ( ) ;
2425 const styles = useThemeStyles ( ) ;
2526 const { shouldUseNarrowLayout} = useResponsiveLayout ( ) ;
26- const [ iouReportAction ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS } ${ transaction . reportID } ` , {
27+ const nonEmptyStringTransactionReportID = getNonEmptyStringOnyxID ( transaction . reportID ) ;
28+
29+ const [ iouReportAction ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS } ${ nonEmptyStringTransactionReportID } ` , {
2730 selector : ( reportActions ) => getIOUActionForTransactionID ( Object . values ( reportActions ?? { } ) , transaction . transactionID ) ,
2831 canBeMissing : true ,
2932 } ) ;
@@ -32,7 +35,7 @@ function ChatBubbleCell({transaction, containerStyles, isInSingleTransactionRepo
3235 canBeMissing : true ,
3336 } ) ;
3437
35- const [ parentReport ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT } ${ transaction . reportID } ` , {
38+ const [ parentReport ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT } ${ nonEmptyStringTransactionReportID } ` , {
3639 canBeMissing : false ,
3740 } ) ;
3841
0 commit comments