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 {