From 77e40c088c4997c83224aacbba93d01df86216db Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Wed, 25 Feb 2026 21:05:13 +0100 Subject: [PATCH] Fix --- web/pages/api/og/profile.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/pages/api/og/profile.tsx b/web/pages/api/og/profile.tsx index 9f138111..d92c76e5 100644 --- a/web/pages/api/og/profile.tsx +++ b/web/pages/api/og/profile.tsx @@ -1,7 +1,6 @@ import {ImageResponse} from '@vercel/og' import {ImageResponseOptions} from '@vercel/og/dist/types' import {ogProps} from 'common/profiles/og-image' -import {capitalize} from 'lodash' import {NextRequest} from 'next/server' import {classToTw} from 'web/components/og/utils' @@ -16,10 +15,10 @@ export const getCardOptions = async () => ({ }) // Edge-safe capitalize -// function capitalize(str: string) { -// if (!str) return '' -// return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase() -// } +function capitalize(str: string) { + if (!str) return '' + return str.charAt(0).toUpperCase() + str.slice(1).toLowerCase() +} function OgProfile(props: ogProps) { const {avatarUrl, name, city, country, age, interests, keywords} = props