Skip to content
Snippets Groups Projects
Commit 07a103f7 authored by Ramiro's avatar Ramiro
Browse files

Merge branch 'develop' into feature/faqs

parents 0c61b57d aff94d91
No related branches found
No related tags found
No related merge requests found
Pipeline #16189 passed
......@@ -321,11 +321,13 @@ const calculateER = (groupParameters: Map<number[], AgeGroup>, data: ExtraData):
});
const totalER: EnergeticRequirement = {
perCapita: Math.round(totalRequirement / totalOfPeople),
perCapita: 0,
total: totalRequirement,
totalPopulation: totalOfPeople,
};
if (totalOfPeople > 0) {
totalER.perCapita = Math.round(totalRequirement / totalOfPeople);
}
const result: CalculatorResponse = {
groupsRequirements: requirements,
totalRequirement: totalER,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment