From 83c10df764967ce1b9488814216a7d95661d1408 Mon Sep 17 00:00:00 2001 From: Sid McLaughlin Date: Wed, 24 Jan 2024 14:15:15 -0800 Subject: [PATCH] hide upcoming competitions section --- .../competition-list/competition-list.component.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/www/src/common/components/ui/hiring-manager/competition-list/competition-list.component.tsx b/apps/www/src/common/components/ui/hiring-manager/competition-list/competition-list.component.tsx index f49e7743..f1ba3d9d 100644 --- a/apps/www/src/common/components/ui/hiring-manager/competition-list/competition-list.component.tsx +++ b/apps/www/src/common/components/ui/hiring-manager/competition-list/competition-list.component.tsx @@ -103,9 +103,9 @@ const competitions: Competition[] = [ ]; export default function CompetitionList() { - const upcomingCompetitions = competitions.filter((competition: Competition) => - dayjs().isBefore(dayjs(competition.opportunity_submission_period[0])), - ); + // const upcomingCompetitions = competitions.filter((competition: Competition) => + // dayjs().isBefore(dayjs(competition.opportunity_submission_period[0])), + // ); const currentCompetitions = competitions.filter((competition: Competition) => { return ( @@ -137,7 +137,7 @@ export default function CompetitionList() { )} -
+ {/*
Upcoming competitions @@ -161,7 +161,7 @@ export default function CompetitionList() {

)} -
+ */} {previousCompetitions.length > 0 && ( <>