Skip to content

Commit

Permalink
update stat
Browse files Browse the repository at this point in the history
  • Loading branch information
HalcyonJAC committed Oct 31, 2024
1 parent ad99125 commit 61620c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/actions/exercises/generateDiversityReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ const calculationChangeFromPreviousStage = (current, previous) => {
for (const key in current) {
if (previous[key] && key !== 'totalApplications') {
for (const subKey in current[key]) {
if (current[key][subKey] && previous[key][subKey] && previous[key][subKey].total) {
current[key][subKey].change = (previous[key][subKey].total - current[key][subKey].total) * 100 / previous[key][subKey].total;
if (current[key][subKey] && previous[key][subKey] && previous.totalApplications) {
current[key][subKey].change = (previous[key][subKey].total - current[key][subKey].total) * 100 / previous.totalApplications;
}
}
}
Expand Down

0 comments on commit 61620c6

Please sign in to comment.