Skip to content

Commit

Permalink
Small bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus committed Nov 13, 2020
1 parent cfce2d4 commit 9c8f33e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BackOffice/CreateNewEvent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const CreateNewEvent = ({
startTimeMinutePosts.length !== 2 ||
startTimeHourPosts < startTimeHour ||
(startTimeHourPosts === startTimeHour && startTimeMinutePosts < startTimeMinute)),
postTime: newSubeventPage && parseInt(postTime) < 0,
postTime: newSubeventPage && (postTime === "" || parseInt(postTime) < 0),
postTitle: newSubeventPage && posts.some(post => post.title === ""),
postGroup: newSubeventPage && posts.some(post => post.startGroup === ""),
};
Expand Down

0 comments on commit 9c8f33e

Please sign in to comment.