Skip to content

Commit

Permalink
fix: 닉네임 최대 글자 수 20자로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ukkodeveloper authored and cruelladevil committed Oct 4, 2023
1 parent 7bb0169 commit 9a88c5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/features/member/hooks/useNickname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const useNickname = () => {
const handleChangeNickname: React.ChangeEventHandler<HTMLInputElement> = (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 {
Expand Down

0 comments on commit 9a88c5b

Please sign in to comment.