Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function MoneyRequestReportView({report, policy, reportMetadata, shouldDisplayRe
if (isTransactionThreadView) {
// Extract transaction ID from parent report action to get specific violations
const transactionID = getTransactionIDFromReportAction(parentReportAction);
const transactionViolations = transactionID && reportViolations ? (reportViolations as Record<string, OnyxTypes.TransactionViolations>)[transactionID] : undefined;
const transactionViolations = transactionID && reportViolations ? reportViolations[transactionID] : undefined;

return (
<MoneyRequestHeader
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ function ReportScreen({route, navigation}: ReportScreenProps) {

if (isTransactionThreadView) {
const transactionID = getTransactionIDFromReportAction(parentReportAction);
const transactionViolations = transactionID && allReportViolations ? (allReportViolations as Record<string, OnyxTypes.TransactionViolations>)[transactionID] : undefined;
const transactionViolations = transactionID && allReportViolations ? allReportViolations[transactionID] : undefined;
Copy link
Copy Markdown
Contributor Author

@francoisl francoisl Aug 12, 2025

Choose a reason for hiding this comment

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


headerView = (
<MoneyRequestHeader
Expand Down
1 change: 1 addition & 0 deletions tests/actions/IOUTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6716,6 +6716,7 @@ describe('actions/IOU', () => {
merchant: 'NASDAQ',
comment: '*hey* `hey`',
},
shouldGenerateTransactionThreadReport: true,
});
await waitForBatchedUpdates();
await getOnyxData({
Expand Down
Loading