diff --git a/mon-entreprise/scripts/fetch-stats.js b/mon-entreprise/scripts/fetch-stats.js index bd65b57ce..95995b16b 100644 --- a/mon-entreprise/scripts/fetch-stats.js +++ b/mon-entreprise/scripts/fetch-stats.js @@ -61,7 +61,9 @@ async function fetchSimulatorsMonth() { return { currentMonth: await getDataFromXMonthAgo(0), oneMonthAgo: await getDataFromXMonthAgo(1), - twoMonthAgo: await getDataFromXMonthAgo(2) + twoMonthAgo: await getDataFromXMonthAgo(2), + threeMonthAgo: await getDataFromXMonthAgo(3), + fourMonthAgo: await getDataFromXMonthAgo(4) } } diff --git a/mon-entreprise/source/sites/mon-entreprise.fr/pages/Stats/Stats.tsx b/mon-entreprise/source/sites/mon-entreprise.fr/pages/Stats/Stats.tsx index c566a621f..5af2b77f3 100644 --- a/mon-entreprise/source/sites/mon-entreprise.fr/pages/Stats/Stats.tsx +++ b/mon-entreprise/source/sites/mon-entreprise.fr/pages/Stats/Stats.tsx @@ -28,7 +28,13 @@ import { useSimulatorsMetadata } from '../Simulateurs/Home' const stats: StatsData = statsJson as any -const monthPeriods = ['currentMonth', 'oneMonthAgo', 'twoMonthAgo'] as const +const monthPeriods = [ + 'currentMonth', + 'oneMonthAgo', + 'twoMonthAgo', + 'threeMonthAgo', + 'fourMonthAgo' +] as const type MonthPeriod = typeof monthPeriods[number] type Periodicity = 'daily' | 'monthly'