Skip to content

Commit

Permalink
fix empty description is displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Aug 27, 2024
1 parent db1c4c2 commit 5972b6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ function MenuItem(
}

if (shouldTruncateTitle) {
titleToWrap = Parser.truncateHTML(titleToWrap, characterLimit, {ellipsis: '...'});
titleToWrap = Parser.truncateHTML(`<comment>${titleToWrap}</comment>`, characterLimit, {ellipsis: '...'});
console.log(titleToWrap);

Check failure on line 493 in src/components/MenuItem.tsx

View workflow job for this annotation

GitHub Actions / Run ESLint

Unexpected console statement
return titleToWrap;
}

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

0 comments on commit 5972b6f

Please sign in to comment.