mirror of
https://github.com/lingble/twenty.git
synced 2025-11-02 13:47:55 +00:00
fix lint
This commit is contained in:
@@ -12,8 +12,10 @@ export const FullNameFieldDisplay = () => {
|
||||
const isMobile = useIsMobile();
|
||||
|
||||
const truncateTheContent = (contentToTruncate: string, maxLength: number) => {
|
||||
return contentToTruncate.length > maxLength ? `${contentToTruncate.slice(0, maxLength)}...` : contentToTruncate;
|
||||
}
|
||||
return contentToTruncate.length > maxLength
|
||||
? `${contentToTruncate.slice(0, maxLength)}...`
|
||||
: contentToTruncate;
|
||||
};
|
||||
|
||||
const content = [fieldValue?.firstName, fieldValue?.lastName]
|
||||
.filter(isNonEmptyString)
|
||||
|
||||
Reference in New Issue
Block a user