Skip to content

Commit

Permalink
πŸ› fix: λͺ¬μŠ€ν„° 이름 μƒμ„±μ‹œ, 곡백만 μž…λ ₯ν•˜λŠ” 경우 방지 #124
Browse files Browse the repository at this point in the history
  • Loading branch information
윤ᄉα…₯ᆨ규 committed Sep 19, 2024
1 parent 1336885 commit 3bd06bf
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,10 @@ function MonsterName() {
helperText="2~6자둜 μž…λ ₯ν•΄μ£Όμ„Έμš”"
error={!!monsterNameError}
{...register('monsterName', {
required: true,
minLength: 2,
maxLength: 6,
validate: (value) => {
const trimmed = value.trim();
return trimmed.length >= 2 && trimmed.length <= 6;
},
})}
/>

Expand Down

0 comments on commit 3bd06bf

Please sign in to comment.