Skip to content

Commit 794f252

Browse files
committed
Fix: add char limit
1 parent f5318a7 commit 794f252

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/invoices/InvoiceComponents.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const InvoiceTitle = ({ title, isSent, paymentStatus, endDate }) => {
119119
fontWeight="bold"
120120
marginRight="0.5rem"
121121
>
122-
{title}
122+
{title && title.length > 40 ? title.substring(0, 40) + "..." : title}
123123
</Text>
124124

125125
<Flex gap={2}>

0 commit comments

Comments
 (0)