diff --git a/src/endWeek/reports/penthouseReport.js b/src/endWeek/reports/penthouseReport.js index 84d7079dcd7d8944a29475ea7a9db70b3537bea7..1938402d49aa0736876feb48983a1adfab83a386 100644 --- a/src/endWeek/reports/penthouseReport.js +++ b/src/endWeek/reports/penthouseReport.js @@ -161,9 +161,9 @@ App.EndWeek.penthouseReport = function() { } if (V.HGTrainSlavesIDs.length > 0) { - const girlsGirl = V.HGTrainSlavesIDs.find(trainee => slave.ID === trainee.ID); - if (girlsGirl) { - r.push(HGApplication(girlsGirl)); + const trainee = V.HGTrainSlavesIDs.find(trainee => slave.ID === trainee.ID); + if (trainee) { + r.push(HGApplication(slave, trainee.training)); } } @@ -173,15 +173,11 @@ App.EndWeek.penthouseReport = function() { } /** - * @param {object} girlsGirl - * @param {number} girlsGirl.ID - * @param {string} girlsGirl.training + * @param {App.Entity.SlaveState} slave + * @param {string} headGirlsTraining */ - function HGApplication(girlsGirl) { + function HGApplication(slave, headGirlsTraining) { const el = document.createElement("span"); - const slave = getSlave(girlsGirl.ID); - const headGirlsTraining = girlsGirl.training; - const { He, His, he, his, him, himself, girl