From a3dab0464a63edfba03df3ca42c6cc565d2e0e87 Mon Sep 17 00:00:00 2001 From: ukkodeveloper Date: Wed, 4 Oct 2023 00:27:29 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=8B=89=EB=84=A4=EC=9E=84=20=EC=B5=9C?= =?UTF-8?q?=EB=8C=80=20=EA=B8=80=EC=9E=90=20=EC=88=98=2020=EC=9E=90?= =?UTF-8?q?=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/features/member/hooks/useNickname.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/features/member/hooks/useNickname.ts b/frontend/src/features/member/hooks/useNickname.ts index 84ac4467..83ce1ccc 100644 --- a/frontend/src/features/member/hooks/useNickname.ts +++ b/frontend/src/features/member/hooks/useNickname.ts @@ -22,8 +22,8 @@ const useNickname = () => { const handleChangeNickname: React.ChangeEventHandler = (event) => { const currentNickname = event.currentTarget.value; setNicknameEntered(currentNickname); - if (currentNickname.length < 2 || currentNickname.length > 10) { - setNicknameErrorMessage('2글자 이상 10글자 이하 문자만 가능합니다.'); + if (currentNickname.length < 2 || currentNickname.length > 20) { + setNicknameErrorMessage('2글자 이상 20글자 이하 문자만 가능합니다.'); } else if (currentNickname === user?.nickname) { setNicknameErrorMessage('이전과 다른 닉네임으로 변경해주세요.'); } else {