Skip to content

Commit

Permalink
Merge pull request #262 from flickmatch/getEventsLatest
Browse files Browse the repository at this point in the history
change logic to show dummy games
  • Loading branch information
abhishekFlick authored Jul 9, 2024
2 parents bca4148 + a039334 commit 59412f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react-fm/src/pages/matchQueues/eventsComponents/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export const EventsCard: FC<EventDetails> = ({
const daysDifference = Math.floor(timeDifferenceMs / (1000 * 60 * 60 * 24));

const checkValue = Math.sign(daysDifference);

const eventDate = checkValue <= 0 ? date : futureDate;
// Change this to some other logic
const eventDate = checkValue <= 2 ? date : futureDate;

const startTime = time.split('-')[0]; //8:00PM
const endTime = time.split('-')[1].split(' ')[0];
Expand Down

0 comments on commit 59412f6

Please sign in to comment.