diff --git a/src/components/TransactionItemRow/index.tsx b/src/components/TransactionItemRow/index.tsx index e1800106186c..acbf46f6ae37 100644 --- a/src/components/TransactionItemRow/index.tsx +++ b/src/components/TransactionItemRow/index.tsx @@ -388,6 +388,10 @@ function TransactionItemRow({ ], ); const safeColumnWrapperStyle = columnWrapperStyles ?? [styles.p3, styles.expenseWidgetRadius]; + const shouldRenderChatBubbleCell = useMemo(() => { + return columns?.includes(CONST.REPORT.TRANSACTION_LIST.COLUMNS.COMMENTS) ?? false; + }, [columns]); + return ( - + {shouldRenderChatBubbleCell && ( + + )}