Skip to content

Commit 79cd7bc

Browse files
Reduce max pet name length
1 parent 1124dae commit 79cd7bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ui/components/app/name/name.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ const Name = memo(
103103
}, [setModalOpen]);
104104

105105
const formattedValue = formatValue(value, type);
106+
const MAX_PET_NAME_LENGTH = 12;
106107
const formattedName = shortenString(name || undefined, {
107-
truncatedCharLimit: 15,
108-
truncatedStartChars: 15,
108+
truncatedCharLimit: MAX_PET_NAME_LENGTH,
109+
truncatedStartChars: MAX_PET_NAME_LENGTH,
109110
truncatedEndChars: 0,
110111
skipCharacterInEnd: true,
111112
});

0 commit comments

Comments
 (0)