diff --git a/packages/reva-candidate/src/app/page.tsx b/packages/reva-candidate/src/app/page.tsx index e8e7d6ccf..91f976729 100644 --- a/packages/reva-candidate/src/app/page.tsx +++ b/packages/reva-candidate/src/app/page.tsx @@ -8,7 +8,7 @@ import { ProjectTimeline } from "@/components/legacy/organisms/ProjectTimeline/P import { useCandidacy } from "@/components/candidacy/candidacy.context"; import { useFeatureFlipping } from "@/components/feature-flipping/featureFlipping"; import Button from "@codegouvfr/react-dsfr/Button"; -import { addMonths, format, subWeeks } from "date-fns"; +import { addMonths, format, isAfter, subWeeks } from "date-fns"; import Image from "next/image"; import Link from "next/link"; import { useRouter } from "next/navigation"; @@ -25,11 +25,8 @@ const ActualisationSection = ({ }: { lastActivityDate: number; }) => { - // La candidature sera considérée comme caduque après cette date, 5 mois et 2 semaines après la dernière actualisation - const thresholdDate = format( - subWeeks(addMonths(lastActivityDate, 6), 2), - "dd/MM/yyyy", - ); + // La candidature sera considérée comme caduque après cette date, 6 mois après la dernière actualisation + const thresholdDate = format(addMonths(lastActivityDate, 6), "dd/MM/yyyy"); return (