diff --git a/app/[lang]/(live)/(protected)/my-pages/profile/@profile/page.tsx b/app/[lang]/(live)/(protected)/my-pages/profile/@profile/page.tsx index 720306478..1ab252f1f 100644 --- a/app/[lang]/(live)/(protected)/my-pages/profile/@profile/page.tsx +++ b/app/[lang]/(live)/(protected)/my-pages/profile/@profile/page.tsx @@ -39,7 +39,13 @@ export default async function Profile({ params }: PageArgs) { {intl.formatMessage({ id: "Welcome" })} - + <Title + data-hj-suppress + as="h4" + color="burgundy" + level="h2" + textTransform="capitalize" + > {user.name} diff --git a/components/Blocks/DynamicContent/Overview/Friend/index.tsx b/components/Blocks/DynamicContent/Overview/Friend/index.tsx index b499870c6..16dda8f8f 100644 --- a/components/Blocks/DynamicContent/Overview/Friend/index.tsx +++ b/components/Blocks/DynamicContent/Overview/Friend/index.tsx @@ -41,7 +41,7 @@ export default async function Friend({ />
- + <Title data-hj-suppress className={styles.name} color="pale" level="h3"> {name} {children} diff --git a/components/Forms/Edit/Profile/FormContent/index.tsx b/components/Forms/Edit/Profile/FormContent/index.tsx index 40dbdb1ae..4b16a250b 100644 --- a/components/Forms/Edit/Profile/FormContent/index.tsx +++ b/components/Forms/Edit/Profile/FormContent/index.tsx @@ -37,10 +37,15 @@ export default function FormContent() { - - + +
- + + {/* visibilityToggleable set to false as feature is done for signup first */} {/* likely we can remove the prop altogether once signup launches */} - + {intl.formatMessage({ id: "Welcome" })} - + <Title + data-hj-suppress + as="h4" + color="burgundy" + level="h2" + textTransform="capitalize" + > {user.name} diff --git a/utils/session.ts b/utils/session.ts index 9420b228f..f247530d0 100644 --- a/utils/session.ts +++ b/utils/session.ts @@ -9,11 +9,14 @@ export function isValidSession(session: Session | null) { console.log(`Session error: ${session.error}`) return false } - if (session.token.error) { - console.log(`Session token error: ${session.token.error}`) + + const token = session.token + + if (token?.error) { + console.log(`Session token error: ${token.error}`) return false } - if (session.token.expires_at && session.token?.expires_at < Date.now()) { + if (token?.expires_at && token.expires_at < Date.now()) { console.log(`Session expired: ${session.token.expires_at}`) return false }