Skip to content

Commit

Permalink
Fix: 배포 환경 모집글 작성 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaeYubin committed Aug 1, 2024
1 parent 370491f commit 9e1ee48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/containers/article/ArticleWriteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,17 @@ const ArticleWriteForm = () => {
const startMinuteValue = values.startMinute;
const endMinuteValue = values.endMinute;

console.log('onSubmit');

if (
startHourValue > endHourValue ||
(startHourValue === endHourValue && startMinuteValue >= endMinuteValue)
) {
setShowTimeErrorMessage(true);
console.log('Time Error');
} else {
setShowTimeErrorMessage(false);
console.log('mutation 전');

mutation.mutate({
title: values.title,
Expand Down

0 comments on commit 9e1ee48

Please sign in to comment.