Skip to content

Commit

Permalink
refactor :: 제한수 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ftery0 committed Dec 12, 2024
1 parent 106f8f5 commit ecca7dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/hooks/leave/useApplyLeave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ const useApplyLeave = () => {
return;
}

if (!reason || reason.replace(/\s+/g, "").length <= 2){
showToast("사유의 길이를 2자 이상으로 적어주세요!", "INFO")
if (!reason || reason.replace(/\s+/g, "").length <= 5){
showToast("사유의 길이를 5자 이상으로 적어주세요!", "INFO")
return;
}

Expand Down
4 changes: 2 additions & 2 deletions src/hooks/pass/useApplyPass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,8 @@ const useApplyPass = () => {
return;
}

if (!reason || reason.replace(/\s+/g, "").length <= 2) {
showToast("사유의 길이를 2자 이상로 적어주세요!", "INFO");
if (!reason || reason.replace(/\s+/g, "").length <= 5) {
showToast("사유의 길이를 5자 이상로 적어주세요!", "INFO");
return;
}
if (reason?.length > 50) {
Expand Down

0 comments on commit ecca7dd

Please sign in to comment.