Skip to content

Commit

Permalink
Update description
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Dec 29, 2023
1 parent 429a6d3 commit 10eb258
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default async function ({
<div className="text-3xl font-extrabold text-center">
{enstate.name}
</div>
{enstate.records.description && (
{enstate.records?.description && (
<div>{enstate.records.description}</div>
)}
</div>
Expand Down Expand Up @@ -115,7 +115,8 @@ export async function generateMetadata({

return {
title: `${data.name} | ENS Page`,
description: data.records.description || `View ${data.name}'s ENS Page`,
description:
data.records?.description || `View ${data.name}'s ENS Page`,
icons: data.avatar,
} as Metadata;
}

0 comments on commit 10eb258

Please sign in to comment.