Skip to content

Commit edefede

Browse files
authored
hf avatar og (#220)
use truncated address
1 parent 84fa34f commit edefede

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/modules/generate-images/user-profile-image.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ export async function generateUserProfileImage({
3131
const avatarPlaceholder = await imageToBase64(avatarPlaceholderPath);
3232
const font = await fontToBase64(fontPath);
3333
const html = await loadHtml(template);
34+
const truncatedAddress = truncateAddress(user?.address);
3435

35-
let primaryText = truncateAddress(user?.address);
36+
let primaryText = truncatedAddress;
3637
let secondaryText: string | undefined = undefined;
3738

3839
if (user?.fullName) {
@@ -42,7 +43,7 @@ export async function generateUserProfileImage({
4243
primaryText += ` (${user?.handle})`;
4344
} else if (user?.handle) {
4445
primaryText = user?.handle;
45-
secondaryText = user?.address;
46+
secondaryText = truncatedAddress;
4647
}
4748

4849
const content = {

0 commit comments

Comments
 (0)