Skip to content

Commit b6794f5

Browse files
committed
correct profile issue
1 parent 505c6f0 commit b6794f5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

frontend/main/src/pages/user/profile.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export default function UserProfile({
5858
return (
5959
<>
6060
<NextSeo
61-
title={pageData.title}
62-
description={pageData.excerpt}
61+
title={pageData?.title}
62+
description={pageData?.excerpt}
6363
canonical={`https://codingcat.dev/user/profile`}
6464
openGraph={{
6565
type: 'website',
@@ -70,13 +70,13 @@ export default function UserProfile({
7070
site_name: 'CodingCat.dev User Profile',
7171
images: [
7272
{
73-
url: `https://media.codingcat.dev/image/upload/f_png,c_fit,w_1200,h_630/${pageData.coverPhoto?.public_id}`,
73+
url: `https://media.codingcat.dev/image/upload/f_png,c_fit,w_1200,h_630/${pageData?.coverPhoto?.public_id}`,
7474
width: 1200,
7575
height: 630,
76-
alt: pageData.title,
76+
alt: pageData?.title,
7777
},
7878
{
79-
url: `https://media.codingcat.dev/image/upload/f_png/${pageData.coverPhoto?.public_id}`,
79+
url: `https://media.codingcat.dev/image/upload/f_png/${pageData?.coverPhoto?.public_id}`,
8080
},
8181
],
8282
}}

0 commit comments

Comments
 (0)