chore: format
This commit is contained in:
parent
fef5ed7404
commit
80f9b49491
1 changed files with 4 additions and 1 deletions
|
|
@ -10,7 +10,10 @@ const truncateDescription = (description: string): string => {
|
|||
if (description.length <= MAX_DESCRIPTION_LENGTH) {
|
||||
return description;
|
||||
}
|
||||
return Array.from(description).slice(0, MAX_DESCRIPTION_LENGTH).join("").trim() + "…";
|
||||
return (
|
||||
Array.from(description).slice(0, MAX_DESCRIPTION_LENGTH).join("").trim() +
|
||||
"…"
|
||||
);
|
||||
};
|
||||
|
||||
interface SlashCommandUIProps {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue