Skip to content

Commit

Permalink
fix: 닉네임 최대 글자 수 20자로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ukkodeveloper committed Oct 3, 2023
1 parent f442db5 commit a3dab04
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 a3dab04

Please sign in to comment.