Skip to content

Commit

Permalink
Update MenuItem.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonhenry committed Aug 26, 2024
1 parent bce1cd5 commit a30023e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ function MenuItem(
}

if (shouldTruncateTitle) {
titleToWrap = Parser.truncateHTML(titleToWrap, limit, {ellipsis: '...'});
titleToWrap = Parser.truncateHTML(titleToWrap, characterLimit, {ellipsis: '...'});
}

return titleToWrap ? `<comment>${titleToWrap}</comment>` : '';
Expand Down

0 comments on commit a30023e

Please sign in to comment.