Skip to content

Commit

Permalink
Merge pull request #125 from jarrisondev/main
Browse files Browse the repository at this point in the history
update countdown date & prevent rendering of FeatureProjects when no projects are available
  • Loading branch information
afordigital authored Nov 19, 2024
2 parents 3978d02 + 8e2f1b5 commit 85bd213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Countdown/Countdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Countdown = () => {
});

const updateCountdown = () => {
const countdownDate = new Date('2024-11-20');
const countdownDate = new Date('2025-03-16');
const now = new Date();

const timeDifference = countdownDate.getTime() - now.getTime();
Expand Down
2 changes: 2 additions & 0 deletions src/pages/_sections/FeatureProjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export const FeatureProjects = ({ className }: FeatureProjectsProps) => {
);
};

if (projects.length === 0 && !isLoading) return null;

return (
<section className={classes.container}>
<div className="container mx-auto">
Expand Down

0 comments on commit 85bd213

Please sign in to comment.