Skip to content

Commit

Permalink
Limitando caracteres da ultima mensagem exibida
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Apr 10, 2023
1 parent baa5cd2 commit 920e31c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/TicketListItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ const TicketListItem = ({ ticket, userId }) => {
color="textSecondary"
>
{ticket.lastMessage ? (
<MarkdownWrapper>{ticket.lastMessage}</MarkdownWrapper>
<MarkdownWrapper>{ticket.lastMessage.slice(0, 20) + (ticket.lastMessage.length > 20 ? " ..." : "")}</MarkdownWrapper>
) : (
<br />
)}
Expand Down

0 comments on commit 920e31c

Please sign in to comment.