Skip to content

Commit

Permalink
changed || to &&
Browse files Browse the repository at this point in the history
  • Loading branch information
RchtDshr authored Oct 11, 2024
1 parent 65d5f3e commit 31288e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EventPageClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const EventPageClient = ({ eventsId }: { eventsId: string }) => {
const registrationStartDate = new Date(data[0].event_registration_startdate);
const registrationEndDate = new Date(data[0].event_registration_enddate);

if (currentDate < registrationStartDate || currentDate > registrationEndDate) {
if (currentDate < registrationStartDate && currentDate > registrationEndDate) {
setRegistrationClosed(true); // Set registration closed if outside the valid period
}
};
Expand Down

0 comments on commit 31288e5

Please sign in to comment.