File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/modules/generate-images Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments