Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions src/components/TransactionItemRow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment
But let's add an empty line before return

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ZhenjaHorbach ZhenjaHorbach Jul 11, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn
Now we have TS issues 😅

@ZhenjaHorbach ZhenjaHorbach Jul 11, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But it's not our issues
Let's try to update a branch to the latest version of main

<View
style={[styles.flex1]}
Expand Down Expand Up @@ -479,11 +483,13 @@ function TransactionItemRow({
missingFieldError={missingFieldError}
/>
</View>
<ChatBubbleCell
transaction={transactionItem}
containerStyles={[styles.mt2]}
isInSingleTransactionReport={isInSingleTransactionReport}
/>
{shouldRenderChatBubbleCell && (
<ChatBubbleCell
transaction={transactionItem}
containerStyles={[styles.mt2]}
isInSingleTransactionReport={isInSingleTransactionReport}
/>
)}
</View>
</View>
</Animated.View>
Expand Down
Loading