Skip to content

Commit 014edee

Browse files
authored
Merge pull request Expensify#64818 from Expensify/cmartins-checkForLength
Check for length when rendering violation
2 parents c38b2e1 + e61aefe commit 014edee

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/components/TransactionItemRow/TransactionItemRowRBRWithOnyx.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ function TransactionItemRowRBRWithOnyx({transaction, containerStyles, missingFie
9191
// and end with a single dot.
9292
...transactionViolations.map((violation) => {
9393
const message = ViolationsUtils.getViolationTranslation(violation, translate);
94+
if (!message.length) {
95+
return [];
96+
}
9497
return message.endsWith('.') ? message : `${message}.`;
9598
}),
9699
].join(' ');

0 commit comments

Comments
 (0)