Skip to content

Commit e61aefe

Browse files
committed
check for length when rendering violation
1 parent ae7a1c0 commit e61aefe

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)