Skip to content

Commit b2b95a5

Browse files
committed
fixes: DASH-541 (#5636)
1 parent 0babe2f commit b2b95a5

File tree

2 files changed

+7
-29
lines changed

2 files changed

+7
-29
lines changed

apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -44,42 +44,13 @@ export async function generateMetadata(props: PageProps): Promise<Metadata> {
4444
return notFound();
4545
}
4646

47-
const publisherProfile = await fetchPublisherProfile(
48-
resolvedInfo.address,
49-
).catch(() => null);
50-
51-
if (!publisherProfile) {
52-
return notFound();
53-
}
54-
5547
const displayName = shortenIfAddress(
5648
resolvedInfo.ensName || resolvedInfo.address,
5749
).replace("deployer.thirdweb.eth", "thirdweb.eth");
5850

59-
// TODO - move this to opengraph-image.tsx
60-
// this is not working even on prod
61-
// const ogImageLink = ProfileOG.toUrl({
62-
// displayName,
63-
// bio: publisherProfile.bio,
64-
// avatar: publisherProfile.avatar,
65-
// });
66-
6751
return {
6852
title: displayName,
6953
description: `Visit ${displayName}'s profile. See their published contracts and deploy them in one click.`,
70-
// openGraph: {
71-
// title: displayName,
72-
// images: ogImageLink
73-
// ? [
74-
// {
75-
// url: ogImageLink.toString(),
76-
// alt: `${displayName}'s profile on thirdweb.com`,
77-
// width: 1200,
78-
// height: 630,
79-
// },
80-
// ]
81-
// : undefined,
82-
// },
8354
};
8455
}
8556

apps/dashboard/src/components/contract-components/publisher/masked-avatar.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ export const PublisherAvatar: React.FC<PublisherAvatarProps> = ({
2828
client,
2929
});
3030

31+
if (
32+
!(isPending || ensQuery.isPending || publisherProfile.isPending) &&
33+
!publisherImageUrl
34+
) {
35+
return null;
36+
}
37+
3138
return (
3239
<MaskedAvatar
3340
isPending={isPending || ensQuery.isPending || publisherProfile.isPending}

0 commit comments

Comments
 (0)