From 77d943ece37dc57fdba860fa6710017581350c77 Mon Sep 17 00:00:00 2001 From: Patryk Dabrowski Date: Mon, 13 May 2024 09:32:46 +0200 Subject: [PATCH] Missing ADMIN AREA 3 and ADMIN AREA 4 in Programme Details (#3848) --- .../components/programs/ProgramDetails/ProgramDetails.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/programs/ProgramDetails/ProgramDetails.tsx b/frontend/src/components/programs/ProgramDetails/ProgramDetails.tsx index 8338852cc1..381bc6b169 100644 --- a/frontend/src/components/programs/ProgramDetails/ProgramDetails.tsx +++ b/frontend/src/components/programs/ProgramDetails/ProgramDetails.tsx @@ -55,7 +55,12 @@ export const ProgramDetails = ({ const renderAdminAreasCount = ( partner: ProgramQuery['program']['partners'][0], ): React.ReactElement => { - const counts = {}; + const counts = { + 1: 0, + 2: 0, + 3: 0, + 4: 0, + }; partner.areas?.forEach(({ level }) => { const currentCount = counts[level + 1] || 0; counts[level + 1] = currentCount + 1;