Skip to content

Commit

Permalink
Fix: 폼 수정 시 제출 버튼이 안눌리던 현상 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
eunji-0623 committed Aug 6, 2024
1 parent f47e033 commit 1b872f6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions components/MyActivity/Register/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,7 @@ function RegisterForm({ activityData, isEdit = false }: RegisterFormProps) {
// form 제출이 가능한지 체크 - 시간, 날짜 관련
const isTimeFieldValid = () =>
Array.from({ length: timeSlotCount }).every(
(_, i) =>
selectedDate[i].endTime !== '00:00' &&
selectedDate[i].startTime <= selectedDate[i].endTime &&
selectedDate[i].date !== ''
(_, i) => selectedDate[i].date !== ''
);

// form 제출이 가능한지 체크
Expand Down

0 comments on commit 1b872f6

Please sign in to comment.