Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytes1027 committed Apr 11, 2024
1 parent 84e1aa4 commit 13ef641
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions FU.SPA/src/components/PostForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ const PostForm = ({ onSubmit, submitButtonText, initialValue }) => {
useEffect(() => {
setIsEnabled(
game?.name?.length >= 3 &&
title.length >= 3 &&
description.length <= 1500 &&
startTime !== null &&
endTime !== null &&
startTime.isAfter(dayjs()) &&
startTime.isBefore(endTime) &&
endTime.isBefore(startTime.add(24, 'hours')) &&
endTime.isAfter(startTime),
title.length >= 3 &&
description.length <= 1500 &&
startTime !== null &&
endTime !== null &&
startTime.isAfter(dayjs()) &&
startTime.isBefore(endTime) &&
endTime.isBefore(startTime.add(24, 'hours')) &&
endTime.isAfter(startTime),
);
}, [game, title, isEnabled, endTime, startTime, description.length]);

Expand Down

0 comments on commit 13ef641

Please sign in to comment.