Skip to content

Commit

Permalink
new constant
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-dange committed May 5, 2024
1 parent 70fbb79 commit 598ea66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/store/cart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,8 @@ const getServerSidePropsFunc: GetServerSideProps = async ({ req, res }) => {
.filter(event => {
const startTime = new Date(event.start);
const now = Date.now();
const twoDaysFromNow = new Date(now + 2 * 24 * 60 * 60 * 1000);
const twoDaysInMs = 2 * 24 * 60 * 60 * 1000;
const twoDaysFromNow = new Date(now + twoDaysInMs);
return startTime >= twoDaysFromNow;
})
);
Expand Down

0 comments on commit 598ea66

Please sign in to comment.