-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add national society indicators #398
Conversation
src/views/CountryNsOverviewContextAndStructure/NationalSocietyIndicators/index.tsx
Outdated
Show resolved
Hide resolved
src/views/CountryNsOverviewContextAndStructure/NationalSocietyIndicators/index.tsx
Outdated
Show resolved
Hide resolved
src/views/CountryNsOverviewContextAndStructure/NationalSocietyIndicators/index.tsx
Outdated
Show resolved
Hide resolved
src/views/CountryNsOverviewContextAndStructure/NationalSocietyIndicators/index.tsx
Outdated
Show resolved
Hide resolved
const staffValue = sumSafe([ | ||
indicatorResponse?.female_staff_total, | ||
indicatorResponse?.male_staff_total, | ||
]); | ||
|
||
const volunteersValue = sumSafe([ | ||
indicatorResponse?.male_volunteer_total, | ||
indicatorResponse?.female_volunteer_total, | ||
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about other
staff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should use KPI_PStaff_Tot, KPI_PeopleVol_Tot
indicators
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@samshara lets note that we are including 3rd gender population.
5be97a1
to
bdbd478
Compare
const youthValue = sumSafe([ | ||
indicatorResponse?.male_volunteer_age_6_12, | ||
indicatorResponse?.male_volunteer_age_13_17, | ||
indicatorResponse?.male_volunteer_age_18_29, | ||
indicatorResponse?.female_volunteer_age_6_12, | ||
indicatorResponse?.female_volunteer_age_13_17, | ||
indicatorResponse?.female_volunteer_age_18_29, | ||
indicatorResponse?.female_staff_age_18_29, | ||
indicatorResponse?.male_staff_age_18_29, | ||
]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per previous discussions, we should use the total value.
cc: @k9845
Indicators to use
KPI_PeopleVol_Tot_age_6_12
KPI_PeopleVol_Tot_age_13_17
KPI_PeopleVol_Tot_age_18_29
`
d13ba59
to
77454de
Compare
4a893d3
to
2dcc3d3
Compare
f239df3
to
45a790a
Compare
Addresses:
Changes
This PR doesn't introduce:
console.log
meant for debugging