diff --git a/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx b/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx index 300d8a19dd3..59fe2a9efa8 100644 --- a/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx +++ b/apps/dashboard/src/app/(dashboard)/profile/[addressOrEns]/page.tsx @@ -44,42 +44,13 @@ export async function generateMetadata(props: PageProps): Promise { return notFound(); } - const publisherProfile = await fetchPublisherProfile( - resolvedInfo.address, - ).catch(() => null); - - if (!publisherProfile) { - return notFound(); - } - const displayName = shortenIfAddress( resolvedInfo.ensName || resolvedInfo.address, ).replace("deployer.thirdweb.eth", "thirdweb.eth"); - // TODO - move this to opengraph-image.tsx - // this is not working even on prod - // const ogImageLink = ProfileOG.toUrl({ - // displayName, - // bio: publisherProfile.bio, - // avatar: publisherProfile.avatar, - // }); - return { title: displayName, description: `Visit ${displayName}'s profile. See their published contracts and deploy them in one click.`, - // openGraph: { - // title: displayName, - // images: ogImageLink - // ? [ - // { - // url: ogImageLink.toString(), - // alt: `${displayName}'s profile on thirdweb.com`, - // width: 1200, - // height: 630, - // }, - // ] - // : undefined, - // }, }; } diff --git a/apps/dashboard/src/components/contract-components/publisher/masked-avatar.tsx b/apps/dashboard/src/components/contract-components/publisher/masked-avatar.tsx index 7e82ae0b8fd..4b55fac6e4e 100644 --- a/apps/dashboard/src/components/contract-components/publisher/masked-avatar.tsx +++ b/apps/dashboard/src/components/contract-components/publisher/masked-avatar.tsx @@ -28,6 +28,13 @@ export const PublisherAvatar: React.FC = ({ client, }); + if ( + !(isPending || ensQuery.isPending || publisherProfile.isPending) && + !publisherImageUrl + ) { + return null; + } + return (