From 627c3eac8e8ea634b585ece9f1491471dd102596 Mon Sep 17 00:00:00 2001 From: JAEMOONLEE Date: Wed, 25 Oct 2023 15:02:21 +0900 Subject: [PATCH] =?UTF-8?q?[feat]=20=EB=A7=88=EC=9D=B4=20=ED=94=84?= =?UTF-8?q?=EB=A1=9C=ED=95=84=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/userInfo/editProfile.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/userInfo/editProfile.tsx b/pages/userInfo/editProfile.tsx index dddebca..013d5cb 100644 --- a/pages/userInfo/editProfile.tsx +++ b/pages/userInfo/editProfile.tsx @@ -35,7 +35,7 @@ export default function EditProfile({ _imageSrc, userInfo }: ProfileProps) { } = UseForm({ mode: 'onChange' }); const capitalizeFirstLetter = (str: string) => { - return (str || '').charAt(0).toUpperCase() + str.slice(1).toLowerCase(); + return (str || '').charAt(0).toUpperCase() + (str || '').slice(1).toLowerCase(); } const [buttonState, setButtonState] = useState(capitalizeFirstLetter(userInfo?.gender));