Skip to content

Commit

Permalink
Merge branch 'duptala/events-page/124' of https://github.com/UoaWDCC/…
Browse files Browse the repository at this point in the history
…auis-portal into duptala/events-page/124
  • Loading branch information
duptala committed Jul 11, 2024
2 parents 9e3dea8 + bbdadf6 commit ca3507b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/screens/EventScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function EventScreen() {
(acc, event) => {
const eventDate = new Date(event.eventDateStart);
const isEventLive = event.isLive;
if ((eventDate >= currentDate) && (isEventLive)) {
if (eventDate >= currentDate && isEventLive) {
acc.upcomingEvents.push(event);
} else {
acc.pastEvents.push(event);
Expand Down
2 changes: 1 addition & 1 deletion web/src/screens/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default function HomeScreen() {
const upcomingEvents = events.filter((event) => {
const eventDate = new Date(event.eventDateStart);
const isEventLive = event.isLive;
return ((eventDate >= currentDate) && (isEventLive));
return eventDate >= currentDate && isEventLive;
});

return (
Expand Down

0 comments on commit ca3507b

Please sign in to comment.