diff --git a/web/components/profile-about.tsx b/web/components/profile-about.tsx index 1022611c..c313b59d 100644 --- a/web/components/profile-about.tsx +++ b/web/components/profile-about.tsx @@ -16,6 +16,7 @@ import {formatHeight, MeasurementSystem} from 'common/measurement-utils' import {Profile} from 'common/profiles/profile' import {Socials} from 'common/socials' import {UserActivity} from 'common/user' +import {capitalize} from 'lodash' import {Home} from 'lucide-react' import React, {ReactNode} from 'react' import {BiSolidDrink} from 'react-icons/bi' @@ -65,13 +66,13 @@ export function AboutRow(props: { t: t, }) } - if (suffix) { - formattedText += formattedText ? ` (${suffix})` : suffix - } return (
{icon}
-
{formattedText}
+ +
{formattedText}
+ {suffix &&
"{capitalize(suffix)}"
} +
) } diff --git a/web/components/profile/profile-header.tsx b/web/components/profile/profile-header.tsx index 298dc0ec..3a07b999 100644 --- a/web/components/profile/profile-header.tsx +++ b/web/components/profile/profile-header.tsx @@ -246,7 +246,7 @@ export default function ProfileHeader(props: { /> {profile.headline && (
- {profile.headline} + "{profile.headline}"
)}