Skip to content

Commit 96bf838

Browse files
Reduce max pet name length
1 parent 1124dae commit 96bf838

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ui/components/app/name/__snapshots__/name.test.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ exports[`Name renders address with long saved name 1`] = `
7979
<p
8080
class="mm-box mm-text name__name mm-text--body-md mm-box--color-text-default"
8181
>
82-
Very long and l...
82+
Very long an...
8383
</p>
8484
</div>
8585
</div>

ui/components/app/name/name-details/__snapshots__/name-details.test.tsx.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ exports[`NameDetails renders with recognized name 1`] = `
753753
<p
754754
class="mm-box mm-text name__name mm-text--body-md mm-box--color-text-default"
755755
>
756-
iZUMi Bond USD
756+
iZUMi Bond U...
757757
</p>
758758
</div>
759759
</div>

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)