diff --git a/web/components/profile-grid.tsx b/web/components/profile-grid.tsx index 9ced1eee..163a156d 100644 --- a/web/components/profile-grid.tsx +++ b/web/components/profile-grid.tsx @@ -2,6 +2,7 @@ import {JSONContent} from '@tiptap/core' import clsx from 'clsx' import {CompatibilityScore} from 'common/profiles/compatibility-score' import {Profile} from 'common/profiles/profile' +import {capitalize} from 'lodash' import Link from 'next/link' import {Row} from 'web/components/layout/row' import {CompatibleBadge} from 'web/components/widgets/compatible-badge' @@ -225,7 +226,7 @@ function ProfilePreview(props: {
{/*TODO: fix nested links warning (one from Link above, one from link in bio below)*/} {profile.headline &&

{profile.headline}

} - {profile.keywords?.join(' • ')} + {profile.keywords?.map(capitalize)?.join(' • ')} {seekingGenderText &&

{seekingGenderText}.

} {(!!profile.work?.length || profile.occupation_title) && ( diff --git a/web/components/profile/profile-header.tsx b/web/components/profile/profile-header.tsx index 02ae3e08..f54f4957 100644 --- a/web/components/profile/profile-header.tsx +++ b/web/components/profile/profile-header.tsx @@ -2,6 +2,7 @@ import {DotsHorizontalIcon, EyeIcon, LockClosedIcon, PencilIcon} from '@heroicon import clsx from 'clsx' import {Profile} from 'common/profiles/profile' import {User, UserActivity} from 'common/user' +import {capitalize} from 'lodash' import Link from 'next/link' import Router from 'next/router' import React, {useState} from 'react' @@ -240,7 +241,7 @@ export default function ProfileHeader(props: { /> {profile.headline &&
{profile.headline}
} - {profile.keywords?.map((tag, i) => ( + {profile.keywords?.map(capitalize)?.map((tag, i) => ( */} {/*
*/}
- {allTags.map((tag, i) => ( + {allTags?.map(capitalize).map((tag, i) => (