Skip to content

Commit

Permalink
Missing ADMIN AREA 3 and ADMIN AREA 4 in Programme Details (#3848)
Browse files Browse the repository at this point in the history
  • Loading branch information
patryk-dabrowski authored May 13, 2024
1 parent 009aeb2 commit 77d943e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77d943e

Please sign in to comment.