Skip to content

Commit

Permalink
remove(ItemGroup): length condition when the initials have too many c…
Browse files Browse the repository at this point in the history
…haracters
  • Loading branch information
jomunker committed Feb 6, 2024
1 parent a1c144b commit 8f83bea
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/admin/admin/src/mui/menu/ItemGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,6 @@ const ItemGroup: React.FC<React.PropsWithChildren<WithStyles<typeof styles> & Me
console.warn("The prop 'shortTitle' must be either a string or a FormattedMessage to take effect.");
}

if (titleAsString.length > 3) {
titleAsString = getInitials(title);
console.warn("The prop 'shortTitle' must be no longer than 3 characters to take effect.");
}

displayedTitle = titleAsString;
}

Expand Down

0 comments on commit 8f83bea

Please sign in to comment.