Skip to content

Commit

Permalink
Merge pull request #2340 from Gizra/issue-2338
Browse files Browse the repository at this point in the history
Fix Dashboards regression and 'incidence' calculation
  • Loading branch information
anvmn authored Mar 11, 2021
2 parents d1f3f20 + 2fea2fe commit a4a2b05
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions client/src/assets/scss/_dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -633,6 +633,11 @@
}
}

.dashboards-monthly-chart {
display: flex;
flex-direction: column;
}

.fbf-beneficiaries {

.header {
Expand Down
4 changes: 2 additions & 2 deletions client/src/elm/Pages/Dashboard/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -529,14 +529,14 @@ generateCaseNutritionNewCases currentDate caseNutrition =
(\( month, nutritionValue ) ( _, previousNutritionValue ) ->
case nutritionValue.class of
Backend.Dashboard.Model.Moderate ->
if previousNutritionValue.class == Backend.Dashboard.Model.Moderate then
if previousNutritionValue.class /= Backend.Dashboard.Model.Moderate then
( month, Backend.Dashboard.Model.Nutrition 0 1 )

else
( month, Backend.Dashboard.Model.Nutrition 0 0 )

Backend.Dashboard.Model.Severe ->
if previousNutritionValue.class == Backend.Dashboard.Model.Severe then
if previousNutritionValue.class /= Backend.Dashboard.Model.Severe then
( month, Backend.Dashboard.Model.Nutrition 1 0 )

else
Expand Down

0 comments on commit a4a2b05

Please sign in to comment.