Skip to content

Commit 63513a7

Browse files
committed
fix: 날짜 인풋 초기값 현재 날짜로 설정
1 parent cdc6b45 commit 63513a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/features/event/ui/DatePicker.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ const EventDatePicker = ({
2727
isLabel = false,
2828
}: DatePickerProps) => {
2929
const [startDate, setStartDate] = useState<Date | null>(
30-
eventState?.startDate ? new Date(eventState.startDate) : initialStartDate ? new Date(initialStartDate) : null
30+
eventState?.startDate ? new Date(eventState.startDate) : initialStartDate ? new Date(initialStartDate) : new Date()
3131
);
3232

3333
const [endDate, setEndDate] = useState<Date | null>(
34-
eventState?.endDate ? new Date(eventState.endDate) : initialEndDate ? new Date(initialEndDate) : null
34+
eventState?.endDate ? new Date(eventState.endDate) : initialEndDate ? new Date(initialEndDate) : new Date()
3535
);
3636
const [startTime, setStartTime] = useState<string>('06:00');
3737
const [endTime, setEndTime] = useState<string>('23:00');

0 commit comments

Comments
 (0)